From bd9c9ae7e2ae973969569dd434836de9f38b07d4 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 7 Nov 2023 16:55:58 +0100 Subject: refactor(components): split Comment component into 3 components * add ApprovedComment, PendingComment and ReplyCommentForm components * let consumer handle reply form visibility * move structured data into article page (each article already has the comments data and already handle json ltd schema so I prefered to move the schema in the final consumer instead of adding a script element foreach comment) --- .../reply-comment-form.stories.tsx | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/components/organisms/comment/reply-comment-form/reply-comment-form.stories.tsx (limited to 'src/components/organisms/comment/reply-comment-form/reply-comment-form.stories.tsx') diff --git a/src/components/organisms/comment/reply-comment-form/reply-comment-form.stories.tsx b/src/components/organisms/comment/reply-comment-form/reply-comment-form.stories.tsx new file mode 100644 index 0000000..57174ea --- /dev/null +++ b/src/components/organisms/comment/reply-comment-form/reply-comment-form.stories.tsx @@ -0,0 +1,25 @@ +import type { ComponentMeta, ComponentStory } from '@storybook/react'; +import { Heading } from '../../../atoms'; +import { ReplyCommentForm } from './reply-comment-form'; + +/** + * ReplyCommentForm - Storybook Meta + */ +export default { + title: 'Organisms/Comment/ReplyCommentForm', + component: ReplyCommentForm, + argTypes: {}, +} as ComponentMeta; + +const Template: ComponentStory = (args) => ( + +); + +/** + * ReplyCommentForm Stories - Default + */ +export const Default = Template.bind({}); +Default.args = { + commentId: 5, + heading: Reply to comment 5, +}; -- cgit v1.2.3