diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-11-16 18:14:50 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-16 18:14:50 +0100 |
| commit | 4bdbca861293357bb7928c6c7a5990be9f37380b (patch) | |
| tree | 07f24a46f6a16beadfc1795632fc58994db180af /src/components/organisms/comments-list/comments-list.stories.tsx | |
| parent | 509c9b75d2c6b3e97f4a71a9b6830916f64821eb (diff) | |
feat(components): add an option to CommentsList to forbid replies
Diffstat (limited to 'src/components/organisms/comments-list/comments-list.stories.tsx')
| -rw-r--r-- | src/components/organisms/comments-list/comments-list.stories.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/organisms/comments-list/comments-list.stories.tsx b/src/components/organisms/comments-list/comments-list.stories.tsx index f6ad58e..afebfb7 100644 --- a/src/components/organisms/comments-list/comments-list.stories.tsx +++ b/src/components/organisms/comments-list/comments-list.stories.tsx @@ -175,3 +175,14 @@ WithReplies.args = { depth: 2, onSubmit: saveComment, }; + +/** + * Layout Stories - With nested comments and forbidden replies + */ +export const WithForbiddenReplies = Template.bind({}); +WithForbiddenReplies.args = { + areRepliesForbidden: true, + comments, + depth: 3, + onSubmit: saveComment, +}; |
