aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/forms/comment-form.stories.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/organisms/forms/comment-form.stories.tsx')
-rw-r--r--src/components/organisms/forms/comment-form.stories.tsx30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/components/organisms/forms/comment-form.stories.tsx b/src/components/organisms/forms/comment-form.stories.tsx
index f66d35c..8b11df7 100644
--- a/src/components/organisms/forms/comment-form.stories.tsx
+++ b/src/components/organisms/forms/comment-form.stories.tsx
@@ -1,13 +1,19 @@
import { ComponentMeta, ComponentStory } from '@storybook/react';
-import { IntlProvider } from 'react-intl';
import CommentForm from './comment-form';
+const saveComment = async () => {
+ /** Do nothing. */
+};
+
/**
* CommentForm - Storybook Meta
*/
export default {
title: 'Organisms/Forms',
component: CommentForm,
+ args: {
+ saveComment,
+ },
argTypes: {
className: {
control: {
@@ -35,6 +41,16 @@ export default {
required: false,
},
},
+ parentId: {
+ control: {
+ type: null,
+ },
+ description: 'The parent id if it is a reply.',
+ type: {
+ name: 'number',
+ required: false,
+ },
+ },
saveComment: {
control: {
type: null,
@@ -74,13 +90,6 @@ export default {
},
},
},
- decorators: [
- (Story) => (
- <IntlProvider locale="en">
- <Story />
- </IntlProvider>
- ),
- ],
} as ComponentMeta<typeof CommentForm>;
const Template: ComponentStory<typeof CommentForm> = (args) => (
@@ -91,8 +100,3 @@ const Template: ComponentStory<typeof CommentForm> = (args) => (
* Forms Stories - Comment
*/
export const Comment = Template.bind({});
-Comment.args = {
- saveComment: (reset: () => void) => {
- reset();
- },
-};