accounts-frontend/packages/app/components/contact/ContactFormPopup.story.tsx
ErickSkrauch 82abe0a746
Extract general popups markup to its own component
Split popups controllers into separate components
Implemented storybooks for all project's popups
2020-07-06 19:29:56 +03:00

17 lines
439 B
TypeScript

import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import ContactFormPopup from './ContactFormPopup';
storiesOf('Components/Popups', module).add('ContactFormPopup', () => (
<ContactFormPopup
onSubmit={(params) => {
action('onSubmit')(params);
return Promise.resolve();
}}
onClose={action('onClose')}
/>
));