-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,17 @@ | ||
import { Meta, StoryFn } from '@storybook/react' | ||
import MbtiCategories from './MbtiCategories' | ||
import MbtiCategories, { MbtiCategoriesProps } from './MbtiCategories' | ||
|
||
export default { | ||
title: 'Board/MbtiCategories', | ||
component: MbtiCategories, | ||
} as Meta | ||
|
||
const Template: StoryFn = (args) => <MbtiCategories {...args} /> | ||
const Template: StoryFn<MbtiCategoriesProps> = (args) => ( | ||
<MbtiCategories {...args} /> | ||
) | ||
|
||
export const Primary = Template.bind({}) | ||
Primary.args = { | ||
title: '카페에서 남친이랑 싸웠어', | ||
content: '내가 말을 “만약에"라고 시작하면 너무 기빨린대', | ||
imgUrl: '/images/common/thumbnail.svg', | ||
likeCount: 30, | ||
commentCount: 18, | ||
createdAt: '24.07.25', | ||
memberSimpleInfo: { | ||
profileImgUrl: '/images/common/default.svg', | ||
nickName: '유보라', | ||
mbti: 'enfp', | ||
badge: '엠비티어른', | ||
}, | ||
selectedMbti: 'ISTJ', | ||
setMbti: () => {}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters