diff options
| author | Matain <[email protected]> | 2022-06-12 23:57:53 +0800 |
|---|---|---|
| committer | Matain <[email protected]> | 2022-06-12 23:57:53 +0800 |
| commit | a0fedebe3e03bda70b59881b0c49b87af6771a33 (patch) | |
| tree | 4d7d087aa46a2b1cf39717e14ed4f805300897c2 /src/components/StyleGuide.tsx | |
| parent | 065069e5528f01c87e22b613913fb8e0df3b8d4a (diff) | |
Revert "Merge branch 'haishanh-master'"
This reverts commit e4e921e0b93f74bf126ca80cbb83f5e912f73a88, reversing
changes made to a825925cc97d95762634d234ef06be1627a21fb1.
Diffstat (limited to 'src/components/StyleGuide.tsx')
| -rw-r--r-- | src/components/StyleGuide.tsx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/components/StyleGuide.tsx b/src/components/StyleGuide.tsx index 910c538..ee38697 100644 --- a/src/components/StyleGuide.tsx +++ b/src/components/StyleGuide.tsx @@ -4,7 +4,6 @@ import Loading from 'src/components/Loading'; import Button from './Button'; import Input from './Input'; -import { ZapAnimated } from './shared/ZapAnimated'; import SwitchThemed from './SwitchThemed'; import ToggleSwitch from './ToggleSwitch'; @@ -22,9 +21,7 @@ const optionsRule = [ { label: 'Direct', value: 'Direct' }, ]; -const Pane = ({ children, style }: { children: React.ReactNode; style?: React.CSSProperties }) => ( - <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); @@ -43,18 +40,19 @@ class StyleGuide extends PureComponent { render() { return ( <div> - <Pane> - <ZapAnimated /> - </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> <SwitchExample /> </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> <Input /> </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} /> </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> <Button text="Test Lxatency" start={<Zap size={16} />} /> <Button text="Test Lxatency" start={<Zap size={16} />} isLoading /> |
