Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tktcorporation committed Oct 10, 2022
1 parent ab6b3f5 commit 5002e2c
Showing 1 changed file with 33 additions and 8 deletions.
41 changes: 33 additions & 8 deletions web/src/components/Comment/Comment.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,39 @@
import Comment from './Comment'

export const generated = () => {
export const defaultView = () => {
return (
<Comment
comment={{
name: 'Rob Cameron',
body: 'This is the first comment!',
createdAt: '2020-01-01T12:34:56Z',
}}
/>
<div className="m-4">
<Comment
comment={{
id: 1,
name: 'Rob Cameron',
body: 'This is the first comment!',
createdAt: '2020-01-01T12:34:56Z',
postId: 1,
}}
/>
</div>
)
}

export const moderatorView = () => {
mockCurrentUser({
roles: 'moderator',
id: 1,
email: '[email protected]',
})
return (
<div className="m-4">
<Comment
comment={{
id: 1,
name: 'Rob Cameron',
body: 'This is the first comment!',
createdAt: '2020-01-01T12:34:56Z',
postId: 1,
}}
/>
</div>
)
}

Expand Down

0 comments on commit 5002e2c

Please sign in to comment.