Skip to content

Commit

Permalink
feat: CommentList, CommentItem 스토리북 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
xodms0309 committed Apr 13, 2024
1 parent 5721558 commit 321cdd2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/components/Recipe/CommentItem/CommentItem.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { Meta, StoryObj } from '@storybook/react';

import CommentItem from './CommentItem';

import comments from '@/mocks/data/comments.json';

const meta: Meta<typeof CommentItem> = {
title: 'recipe/CommentItem',
component: CommentItem,
args: {
recipeComment: comments.comments[0],
},
};

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

export const Default: Story = {};
16 changes: 16 additions & 0 deletions src/components/Recipe/CommentList/CommentList.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { Meta, StoryObj } from '@storybook/react';

import CommentList from './CommentList';

const meta: Meta<typeof CommentList> = {
title: 'recipe/CommentList',
component: CommentList,
args: {
recipeId: 1,
},
};

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

export const Default: Story = {};

0 comments on commit 321cdd2

Please sign in to comment.