Skip to content

Commit

Permalink
fix: MbtiCategories storybook 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
uiop5809 committed Aug 8, 2024
1 parent f0b681e commit b8e33c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
20 changes: 6 additions & 14 deletions src/components/board/MbtiCategories.stories.tsx
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: () => {},
}
2 changes: 1 addition & 1 deletion src/components/board/MbtiCategories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@/service/board/useBoardService'
import { useState } from 'react'

interface MbtiCategoriesProps {
export interface MbtiCategoriesProps {
selectedMbti: string
setMbti: (mbti: string) => void
}
Expand Down

0 comments on commit b8e33c5

Please sign in to comment.