accounts-frontend/packages/app/components/profile/deleteAccount/DeleteAccount.story.tsx
2020-08-01 01:49:29 +03:00

20 lines
516 B
TypeScript

import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { ProfileLayout } from 'app/components/profile/Profile.story';
import DeleteAccount from './DeleteAccount';
storiesOf('Components/Profile', module).add('DeleteAccount', () => (
<ProfileLayout>
<DeleteAccount
onSubmit={() => {
action('onSubmit')();
return Promise.resolve();
}}
/>
</ProfileLayout>
));