accounts-frontend/packages/app/components/profile/Profile.story.tsx

38 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

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,
isDeleted: false,
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'}
/>
</ProfileLayout>
));