From 0f936ec0e7606cb79434d94096b6e113a7ce78eb Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
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<typeof NavList>;
+  title: 'Molecules/Nav/List',
+} satisfies Meta<typeof NavList>;
 
-const Template: ComponentStory<typeof NavList> = (args) => (
-  <NavList {...args} />
-);
+export default meta;
+
+type Story = StoryObj<typeof meta>;
 
 const NavItems = () => (
   <>
@@ -32,20 +29,16 @@ const NavItems = () => (
   </>
 );
 
-/**
- * NavList Stories - Default
- */
-export const Default = Template.bind({});
-Default.args = {
-  children: <NavItems />,
+export const Example: Story = {
+  args: {
+    children: <NavItems />,
+  },
 };
 
-/**
- * NavList Stories - Inlined
- */
-export const Inlined = Template.bind({});
-Inlined.args = {
-  children: <NavItems />,
-  isInline: true,
-  spacing: 'sm',
+export const Inlined: Story = {
+  args: {
+    children: <NavItems />,
+    isInline: true,
+    spacing: 'sm',
+  },
 };
-- 
cgit v1.2.3

