aboutsummaryrefslogtreecommitdiffstats
path: root/uidev/src/stories/infobox.stories.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'uidev/src/stories/infobox.stories.tsx')
-rw-r--r--uidev/src/stories/infobox.stories.tsx10
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
17const createStore = (args?: IStoreArgs) => { 17const 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
26const WithStoreInfobox = observer(({ store, children }: { store: any, children: string | React.ReactNode }) => ( 23const 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 ));