Skip to content

Commit

Permalink
refactor: storybook render 함수 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gxxrxn committed Oct 14, 2023
1 parent ecb7140 commit ae59fe3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/stories/Base/Toast.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import Toast from '@/ui/Base/Toast/ToastProvider';
import { Meta, StoryObj } from '@storybook/react';

import Button from '@/ui/Base/Button';
import useToast from '@/ui/Base/Toast/useToast';
import ToastItem from '@/ui/Base/Toast/ToastItem';

const meta: Meta<typeof Toast> = {
const meta: Meta<typeof ToastItem> = {
title: 'Base/Toast',
component: Toast,
component: ToastItem,
tags: ['autodocs'],
};

export default meta;

type Story = StoryObj<typeof Toast>;
type Story = StoryObj<typeof ToastItem>;

const DefaultToast = () => {
const toast = useToast();
Expand All @@ -39,13 +39,13 @@ const ErrorToast = () => {
};

export const Default: Story = {
render: () => <DefaultToast />,
render: DefaultToast,
};

export const Success: Story = {
render: () => <SuccessToast />,
render: SuccessToast,
};

export const Error: Story = {
render: () => <ErrorToast />,
render: ErrorToast,
};

0 comments on commit ae59fe3

Please sign in to comment.