diff --git a/.storybook/preview.jsx b/.storybook/preview.jsx index 9f5b6f36..7d7a5e91 100644 --- a/.storybook/preview.jsx +++ b/.storybook/preview.jsx @@ -10,13 +10,7 @@ const preview = { } } }, - decorators: [ - (Story) => ( - - - - ) - ] + decorators: [(Story) => ] }; export default preview; diff --git a/src/components/Letter/SelectItem/SelectItem.stories.tsx b/src/components/Letter/SelectItem/SelectItem.stories.tsx index 99b1ea3c..05e13851 100644 --- a/src/components/Letter/SelectItem/SelectItem.stories.tsx +++ b/src/components/Letter/SelectItem/SelectItem.stories.tsx @@ -1,12 +1,19 @@ import type { Meta, StoryObj } from '@storybook/react'; - import { SelectItem } from './SelectItem'; +import { MemoryRouter } from 'react-router-dom'; const meta: Meta = { component: SelectItem, - title: 'organisms/moSelectItem', + title: 'organisms/SelectItem', tags: ['autodocs'], - argTypes: {} + argTypes: {}, + decorators: [ + (Story) => ( + + + + ) + ] }; export default meta; diff --git a/src/components/Letter/SuccessModal/SuccessModal.stories.tsx b/src/components/Letter/SuccessModal/SuccessModal.stories.tsx index 7247a71e..451a0869 100644 --- a/src/components/Letter/SuccessModal/SuccessModal.stories.tsx +++ b/src/components/Letter/SuccessModal/SuccessModal.stories.tsx @@ -1,12 +1,19 @@ import type { Meta, StoryObj } from '@storybook/react'; - import { SuccessModal } from './SuccessModal'; +import { MemoryRouter } from 'react-router-dom'; const meta: Meta = { component: SuccessModal, title: 'atoms/SuccessModal', tags: ['autodocs'], - argTypes: {} + argTypes: {}, + decorators: [ + (Story) => ( + + + + ) + ] }; export default meta; diff --git a/src/pages/Letter/Create/CreateLetterPage.stories.tsx b/src/pages/Letter/Create/CreateLetterPage.stories.tsx index 4de921aa..1308d552 100644 --- a/src/pages/Letter/Create/CreateLetterPage.stories.tsx +++ b/src/pages/Letter/Create/CreateLetterPage.stories.tsx @@ -1,12 +1,19 @@ import type { Meta, StoryObj } from '@storybook/react'; - import { CreateLetterPage } from './CreateLetterPage'; +import { MemoryRouter } from 'react-router-dom'; const meta: Meta = { component: CreateLetterPage, title: 'Pages/CreateLetterPage', tags: ['autodocs'], - argTypes: {} + argTypes: {}, + decorators: [ + (Story) => ( + + + + ) + ] }; export default meta; diff --git a/src/pages/Letter/SelectItem/SelectItemPage.stories.tsx b/src/pages/Letter/SelectItem/SelectItemPage.stories.tsx new file mode 100644 index 00000000..fd83d092 --- /dev/null +++ b/src/pages/Letter/SelectItem/SelectItemPage.stories.tsx @@ -0,0 +1,25 @@ +import type { Meta, StoryObj } from '@storybook/react'; +import { MemoryRouter } from 'react-router-dom'; + +import { SelectItemPage } from './SelectItemPage'; + +const meta: Meta = { + component: SelectItemPage, + title: 'SelectItemPage', + tags: ['autodocs'], + argTypes: {}, + decorators: [ + (Story) => ( + + + + ) + ] +}; +export default meta; + +type Story = StoryObj; + +export const Default: Story = { + args: {} +};