/
dedaMazai
/
TestServer
Обзор
Документация
Войти
/
dedaMazai
/
TestServer
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/features/addCommentForm/ui/AddCommentForm/AddCommentForm.stories.tsx
24 строки
734 B
Andrey Chipizubov
fix
23 апр 2023, 17:32
23 апр 2023, 17:32
cc424e9
Код
Авторство
О чём код?
import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { StoreDecorator } from '@/shared/config/storybook/StoreDecorator/StoreDecorator'; import AddCommentForm from './AddCommentForm'; export default { title: 'features/AddCommentForm', component: AddCommentForm, argTypes: { backgroundColor: { control: 'color' }, }, } as ComponentMeta<typeof AddCommentForm>; const Template: ComponentStory<typeof AddCommentForm> = (args) => ( <AddCommentForm {...args} /> ); export const Normal = Template.bind({}); Normal.args = { onSendComment: action('onSendComment'), }; Normal.decorators = [StoreDecorator({})];