diff --git a/stories/dropdown.stories.tsx b/stories/dropdown.stories.tsx index f5816c4d..a7811855 100644 --- a/stories/dropdown.stories.tsx +++ b/stories/dropdown.stories.tsx @@ -19,7 +19,7 @@ export const Menu = () => { ); -}; +} Menu.storyName = 'menu'; export const MenuWrapper = () => { @@ -29,5 +29,5 @@ export const MenuWrapper = () => { action: () => window.alert('Clicked!'), }]} /> ); -}; +} MenuWrapper.storyName = 'menu wrapper'; diff --git a/stories/forms.stories.tsx b/stories/forms.stories.tsx index 09cbe398..5084d1a1 100644 --- a/stories/forms.stories.tsx +++ b/stories/forms.stories.tsx @@ -25,5 +25,5 @@ export const Default = () => { )} ); -}; +} Default.storyName = 'default'; diff --git a/stories/notifications.stories.tsx b/stories/notifications.stories.tsx index 204fb545..f0ce70b4 100644 --- a/stories/notifications.stories.tsx +++ b/stories/notifications.stories.tsx @@ -18,19 +18,21 @@ export default { title: 'Notifications', }; -export const Default = () => ( - - {(apis) => [ - {type: NotificationType.Success, title: 'Success'}, - {type: NotificationType.Warning, title: 'Warning'}, - {type: NotificationType.Error, title: 'Error'}, - ].map((item) => ( - - ))} - -); +export const Default = () => { + return ( + + {(apis) => [ + {type: NotificationType.Success, title: 'Success'}, + {type: NotificationType.Warning, title: 'Warning'}, + {type: NotificationType.Error, title: 'Error'}, + ].map((item) => ( + + ))} + + ); +} Default.storyName = 'default'; diff --git a/stories/page.stories.tsx b/stories/page.stories.tsx index 02b74ece..5cf8c475 100644 --- a/stories/page.stories.tsx +++ b/stories/page.stories.tsx @@ -100,21 +100,23 @@ export const Default = () => { }; Default.storyName = 'default'; -export const DynamicToolbar = () => ( - - - - ({breadcrumbs: [ - { title: 'hello ' + new Date().toLocaleTimeString() }, - ]})))}> -
-
Hello world!
-
-
-
-
-
-); +export const DynamicToolbar = () => { + return ( + + + + ({breadcrumbs: [ + { title: 'hello ' + new Date().toLocaleTimeString() }, + ]})))}> +
+
Hello world!
+
+
+
+
+
+ ); +} DynamicToolbar.storyName = 'dynamic toolbar'; export const CompactNavBar = () => { @@ -140,39 +142,43 @@ export const CompactNavBar = () => { }; CompactNavBar.storyName = 'compact nav bar'; -export const CustomTopBarTitle = () => ( - - - - -
-
- Test +export const CustomTopBarTitle = () => { + return ( + + + + +
+
+ Test +
-
- - - - -); + + + + + ); +} CustomTopBarTitle.storyName = 'custom top bar title'; -export const BackgroundColor = () => ( - - - - -
-
- Hello world! +export const BackgroundColor = () => { + return ( + + + + +
+
+ Hello world! +
-
- - - - -); + + + + + ); +} BackgroundColor.storyName = 'background color';