Skip to content

Commit

Permalink
moderate comments UI
Browse files Browse the repository at this point in the history
  • Loading branch information
thomassth committed Oct 23, 2024
1 parent 444a060 commit 659c7de
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
16 changes: 16 additions & 0 deletions stories/compdem/client-admin/ModerateCommentsAccepted.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react'
import { withRedux, withThemeUi } from '../../../.storybook/decorators'
import ModerateCommentsAccepted from '../../../codebases/compdem/client-admin/src/components/conversation-admin/comment-moderation/moderate-comments-accepted'
import { getAcceptedComments } from '../../../.storybook/utils'

export default {
component: ModerateCommentsAccepted,
decorators: [withThemeUi, withRedux],
}

const Template = (args) => <ModerateCommentsAccepted {...args} />

export const Default = Template.bind({})
Default.args = {
accepted_comments: getAcceptedComments(),
}
16 changes: 16 additions & 0 deletions stories/compdem/client-admin/ModerateCommentsRejected.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react'
import { withRedux, withThemeUi } from '../../../.storybook/decorators'
import { getRejectedComments } from '../../../.storybook/utils'
import ModerateCommentsRejected from '../../../codebases/compdem/client-admin/src/components/conversation-admin/comment-moderation/moderate-comments-rejected'

export default {
component: ModerateCommentsRejected,
decorators: [withThemeUi, withRedux],
}

const Template = (args) => <ModerateCommentsRejected {...args} />

export const Default = Template.bind({})
Default.args = {
rejected_comments: getRejectedComments(),
}
16 changes: 16 additions & 0 deletions stories/compdem/client-admin/ModerateCommentsTodo.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react'
import { withRedux, withThemeUi } from '../../../.storybook/decorators'
import { getUnmoderatedComments } from '../../../.storybook/utils'
import ModerateCommentsTodo from '../../../codebases/compdem/client-admin/src/components/conversation-admin/comment-moderation/moderate-comments-todo'

export default {
component: ModerateCommentsTodo,
decorators: [withThemeUi, withRedux],
}

const Template = (args) => <ModerateCommentsTodo {...args} />

export const Default = Template.bind({})
Default.args = {
unmoderated_comments: getUnmoderatedComments(),
}

0 comments on commit 659c7de

Please sign in to comment.