Skip to content

Commit

Permalink
refactor: 스토리명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
miro-ring committed Dec 29, 2023
1 parent adc1cb0 commit 96d1358
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/Toast/Toast.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@ import Toast from './Toast';
const meta: Meta<typeof Toast> = {
title: 'Toast',
component: Toast,
decorators: [
(Story) => (
<div style={{ height: '500px' }}>
<Story />
</div>
),
],
};

export default meta;
type Story = StoryObj<typeof Toast>;

export const 단순확인: Story = {
export const Basic: Story = {
render: function Render() {
const { showToast } = useToast();

Expand All @@ -33,7 +40,7 @@ export const 단순확인: Story = {
},
};

export const 액션유도: Story = {
export const WithAction: Story = {
render: function Render() {
const { showToast } = useToast();

Expand Down

0 comments on commit 96d1358

Please sign in to comment.