-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
d7c1eff
commit 2da7d6d
Showing
2 changed files
with
65 additions
and
0 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
35 changes: 35 additions & 0 deletions
35
src/components/feed/FeedPostViewer/FeedPostViewer.stories.ts
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import FeedPostViewer from './FeedPostViewer'; | ||
|
||
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction | ||
const meta: Meta<typeof FeedPostViewer> = { | ||
title: 'FeedPostViewer', | ||
component: FeedPostViewer, | ||
tags: ['autodocs'], | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof FeedPostViewer>; | ||
|
||
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args | ||
export const Default: Story = { | ||
args: { | ||
post: { | ||
id: 1, | ||
title: '하트시그널 시즌 1부터 시즌 4까지 중에 가장 인기가 많았던 출연자는?', | ||
contents: `1번 김현우\n2번 오영주\n3번 임현주\n4번 박지현\n5번 기타`, | ||
updatedDate: '2시간 전', | ||
images: [], | ||
user: { | ||
id: 1, | ||
name: '김지민', | ||
profileImage: null, | ||
}, | ||
viewCount: 1234, | ||
likeCount: 0, | ||
isLiked: false, | ||
}, | ||
Actions: [], | ||
}, | ||
}; |