diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-07-30 10:54:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 14:24:54 +0530 |
commit | f4b4416ea52d564bc2dbe543a82084ed98843ccc (patch) | |
tree | 7ca6b23571c86458a6b799746c91a7191de02715 /uidev/src/stories/infobox.stories.tsx | |
parent | 5.6.1-nightly.8 [skip ci] (diff) | |
download | ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.tar.gz ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.tar.zst ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.zip |
chore: migrate from tslint to @typescript-eslint (#1706)
- update .eslintrc to work for .js and .ts
- update devDependencies
- lint properly both root /src and nested /packages
- update webhint recommended setting for tsconfig.json to shrink output
- Manage all eslint rules from the repo root
- escape single quotes in scripts to please windows build
Co-authored-by: Vijay A <avijayr@protonmail.com>
Diffstat (limited to 'uidev/src/stories/infobox.stories.tsx')
-rw-r--r-- | uidev/src/stories/infobox.stories.tsx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/uidev/src/stories/infobox.stories.tsx b/uidev/src/stories/infobox.stories.tsx index b0416b844..fe4aaab06 100644 --- a/uidev/src/stories/infobox.stories.tsx +++ b/uidev/src/stories/infobox.stories.tsx | |||
@@ -14,14 +14,11 @@ interface IStoreArgs { | |||
14 | className?: string; | 14 | className?: string; |
15 | } | 15 | } |
16 | 16 | ||
17 | const createStore = (args?: IStoreArgs) => { | 17 | const createStore = (args?: IStoreArgs) => observable({ type: 'primary', |
18 | return observable(Object.assign({ | ||
19 | type: 'primary', | ||
20 | ctaOnClick: () => { | 18 | ctaOnClick: () => { |
21 | alert('on click handler'); | 19 | alert('on click handler'); |
22 | }, | 20 | }, |
23 | }, args)); | 21 | ...args }); |
24 | }; | ||
25 | 22 | ||
26 | const WithStoreInfobox = observer(({ store, children }: { store: any, children: string | React.ReactNode }) => ( | 23 | const WithStoreInfobox = observer(({ store, children }: { store: any, children: string | React.ReactNode }) => ( |
27 | <> | 24 | <> |
@@ -130,7 +127,8 @@ storiesOf('Infobox') | |||
130 | .add('With className', () => ( | 127 | .add('With className', () => ( |
131 | <WithStoreInfobox store={createStore({ | 128 | <WithStoreInfobox store={createStore({ |
132 | className: 'franz-is-awesome', | 129 | className: 'franz-is-awesome', |
133 | })}> | 130 | })} |
131 | > | ||
134 | Welcome to the world of tomorrow | 132 | Welcome to the world of tomorrow |
135 | </WithStoreInfobox> | 133 | </WithStoreInfobox> |
136 | )); | 134 | )); |