From 0f936ec0e7606cb79434d94096b6e113a7ce78eb Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 15 Dec 2023 18:35:16 +0100 Subject: refactor(stories): migrate stories to CSF3 format --- .../molecules/nav/nav-list/nav-list.stories.tsx | 41 +++++++++------------- 1 file changed, 17 insertions(+), 24 deletions(-) (limited to 'src/components/molecules/nav/nav-list/nav-list.stories.tsx') diff --git a/src/components/molecules/nav/nav-list/nav-list.stories.tsx b/src/components/molecules/nav/nav-list/nav-list.stories.tsx index c165ac7..702acfe 100644 --- a/src/components/molecules/nav/nav-list/nav-list.stories.tsx +++ b/src/components/molecules/nav/nav-list/nav-list.stories.tsx @@ -1,19 +1,16 @@ -import type { ComponentMeta, ComponentStory } from '@storybook/react'; +import type { Meta, StoryObj } from '@storybook/react'; import { NavItem } from '../nav-item'; import { NavLink } from '../nav-link'; import { NavList } from './nav-list'; -/** - * Nav - Storybook Meta - */ -export default { - title: 'Molecules/Nav/NavList', +const meta = { component: NavList, -} as ComponentMeta; + title: 'Molecules/Nav/List', +} satisfies Meta; -const Template: ComponentStory = (args) => ( - -); +export default meta; + +type Story = StoryObj; const NavItems = () => ( <> @@ -32,20 +29,16 @@ const NavItems = () => ( ); -/** - * NavList Stories - Default - */ -export const Default = Template.bind({}); -Default.args = { - children: , +export const Example: Story = { + args: { + children: , + }, }; -/** - * NavList Stories - Inlined - */ -export const Inlined = Template.bind({}); -Inlined.args = { - children: , - isInline: true, - spacing: 'sm', +export const Inlined: Story = { + args: { + children: , + isInline: true, + spacing: 'sm', + }, }; -- cgit v1.2.3