summaryrefslogtreecommitdiff
path: root/src/components/StyleGuide.tsx
diff options
context:
space:
mode:
authorHaishan <[email protected]>2022-05-08 18:37:08 +0800
committerHaishan <[email protected]>2022-05-08 23:30:24 +0800
commite8f927bfd3faa6234674fa256010f0e2f53339e0 (patch)
tree64246333af7cd800053078404cc5777c88f1414d /src/components/StyleGuide.tsx
parent3458ef250de9b26bcff4522479708ca9fa5a553c (diff)
Upgrade chart.js
Diffstat (limited to 'src/components/StyleGuide.tsx')
-rw-r--r--src/components/StyleGuide.tsx11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/components/StyleGuide.tsx b/src/components/StyleGuide.tsx
index ec0c29b..ee38697 100644
--- a/src/components/StyleGuide.tsx
+++ b/src/components/StyleGuide.tsx
@@ -21,9 +21,7 @@ const optionsRule = [
{ label: 'Direct', value: 'Direct' },
];
-const Pane = ({ children, style }) => (
- <div style={{ ...paneStyle, ...style }}>{children}</div>
-);
+const Pane = ({ children, style }) => <div style={{ ...paneStyle, ...style }}>{children}</div>;
function useToggle(initialState = false) {
const [onoff, setonoff] = React.useState(initialState);
@@ -52,12 +50,7 @@ class StyleGuide extends PureComponent {
</Pane>
{/* @ts-expect-error ts-migrate(2741) FIXME: Property 'style' is missing in type '{ children: E... Remove this comment to see the full error message */}
<Pane>
- <ToggleSwitch
- name="test"
- options={optionsRule}
- value="Rule"
- onChange={noop}
- />
+ <ToggleSwitch name="test" options={optionsRule} value="Rule" onChange={noop} />
</Pane>
{/* @ts-expect-error ts-migrate(2741) FIXME: Property 'style' is missing in type '{ children: E... Remove this comment to see the full error message */}
<Pane>