mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Introduce storybooks for all profile pages
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import React from 'react';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
import { action } from '@storybook/addon-actions';
|
||||
|
||||
import { FormModel } from 'app/components/ui/form';
|
||||
import { ProfileLayout } from 'app/components/profile/Profile.story';
|
||||
|
||||
import ChangeUsername from './ChangeUsername';
|
||||
|
||||
storiesOf('Components/Profile', module).add('ChangeUsername', () => (
|
||||
<ProfileLayout>
|
||||
<ChangeUsername
|
||||
form={new FormModel()}
|
||||
username="InitialUsername"
|
||||
onChange={action('onChange')}
|
||||
onSubmit={(form) => {
|
||||
action('onSubmit')(form);
|
||||
|
||||
return Promise.resolve();
|
||||
}}
|
||||
/>
|
||||
</ProfileLayout>
|
||||
));
|
||||
Reference in New Issue
Block a user