From 4bdbca861293357bb7928c6c7a5990be9f37380b Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 16 Nov 2023 18:14:50 +0100 Subject: feat(components): add an option to CommentsList to forbid replies --- .../organisms/comments-list/comments-list.stories.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/components/organisms/comments-list/comments-list.stories.tsx') 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, +}; -- cgit v1.2.3