Skip to content

Commit

Permalink
chore : 스토리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloWook committed Dec 1, 2024
1 parent 0f58e13 commit 0a685e3
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 14 deletions.
8 changes: 1 addition & 7 deletions .storybook/preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ const preview = {
}
}
},
decorators: [
(Story) => (
<MemoryRouter initialEntries={['/']}>
<Story />
</MemoryRouter>
)
]
decorators: [(Story) => <Story />]
};

export default preview;
13 changes: 10 additions & 3 deletions src/components/Letter/SelectItem/SelectItem.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import type { Meta, StoryObj } from '@storybook/react';

import { SelectItem } from './SelectItem';
import { MemoryRouter } from 'react-router-dom';

const meta: Meta<typeof SelectItem> = {
component: SelectItem,
title: 'organisms/moSelectItem',
title: 'organisms/SelectItem',
tags: ['autodocs'],
argTypes: {}
argTypes: {},
decorators: [
(Story) => (
<MemoryRouter>
<Story />
</MemoryRouter>
)
]
};
export default meta;

Expand Down
11 changes: 9 additions & 2 deletions src/components/Letter/SuccessModal/SuccessModal.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import type { Meta, StoryObj } from '@storybook/react';

import { SuccessModal } from './SuccessModal';
import { MemoryRouter } from 'react-router-dom';

const meta: Meta<typeof SuccessModal> = {
component: SuccessModal,
title: 'atoms/SuccessModal',
tags: ['autodocs'],
argTypes: {}
argTypes: {},
decorators: [
(Story) => (
<MemoryRouter>
<Story />
</MemoryRouter>
)
]
};
export default meta;

Expand Down
11 changes: 9 additions & 2 deletions src/pages/Letter/Create/CreateLetterPage.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import type { Meta, StoryObj } from '@storybook/react';

import { CreateLetterPage } from './CreateLetterPage';
import { MemoryRouter } from 'react-router-dom';

const meta: Meta<typeof CreateLetterPage> = {
component: CreateLetterPage,
title: 'Pages/CreateLetterPage',
tags: ['autodocs'],
argTypes: {}
argTypes: {},
decorators: [
(Story) => (
<MemoryRouter>
<Story />
</MemoryRouter>
)
]
};
export default meta;

Expand Down
25 changes: 25 additions & 0 deletions src/pages/Letter/SelectItem/SelectItemPage.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import type { Meta, StoryObj } from '@storybook/react';
import { MemoryRouter } from 'react-router-dom';

import { SelectItemPage } from './SelectItemPage';

const meta: Meta<typeof SelectItemPage> = {
component: SelectItemPage,
title: 'SelectItemPage',
tags: ['autodocs'],
argTypes: {},
decorators: [
(Story) => (
<MemoryRouter>
<Story />
</MemoryRouter>
)
]
};
export default meta;

type Story = StoryObj<typeof SelectItemPage>;

export const Default: Story = {
args: {}
};

0 comments on commit 0a685e3

Please sign in to comment.