2020-07-21 18:00:18 +05:30
|
|
|
import React, { ComponentType } from 'react';
|
|
|
|
import { storiesOf } from '@storybook/react';
|
|
|
|
|
|
|
|
import rootStyles from 'app/pages/root/root.scss';
|
|
|
|
import profileStyles from 'app/pages/profile/profile.scss';
|
|
|
|
|
|
|
|
export const ProfileLayout: ComponentType = ({ children }) => (
|
|
|
|
<div className={rootStyles.wrapper}>
|
|
|
|
<div className={profileStyles.container}>{children}</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
|
|
|
import Profile from './Profile';
|
|
|
|
|
|
|
|
storiesOf('Components/Profile', module).add('Profile', () => (
|
|
|
|
<ProfileLayout>
|
|
|
|
<Profile
|
|
|
|
user={{
|
|
|
|
id: 1,
|
|
|
|
username: 'ErickSkrauch',
|
|
|
|
email: 'erickskrauch@ely.by',
|
|
|
|
hasMojangUsernameCollision: true,
|
|
|
|
isActive: true,
|
|
|
|
isGuest: false,
|
2020-07-27 12:58:37 +05:30
|
|
|
isDeleted: false,
|
2020-07-21 18:00:18 +05:30
|
|
|
isOtpEnabled: true,
|
|
|
|
lang: 'unknown',
|
|
|
|
passwordChangedAt: 1595328712,
|
|
|
|
uuid: 'f82f5f58-918c-4b22-8232-b28849775547',
|
|
|
|
shouldAcceptRules: false,
|
|
|
|
avatar: '',
|
|
|
|
token: '',
|
|
|
|
}}
|
2020-07-21 18:53:32 +05:30
|
|
|
activeLocale={'en'}
|
2020-07-21 18:00:18 +05:30
|
|
|
/>
|
|
|
|
</ProfileLayout>
|
|
|
|
));
|