aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/comments-list/comments-list.stories.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-16 18:14:50 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-16 18:14:50 +0100
commit4bdbca861293357bb7928c6c7a5990be9f37380b (patch)
tree07f24a46f6a16beadfc1795632fc58994db180af /src/components/organisms/comments-list/comments-list.stories.tsx
parent509c9b75d2c6b3e97f4a71a9b6830916f64821eb (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.tsx11
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,
+};