1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

added initial profile dialog

This commit is contained in:
Fedor Katurov 2019-11-11 16:01:21 +07:00
parent f6baedc4cd
commit 618c2e3275
28 changed files with 315 additions and 58 deletions

View file

@ -0,0 +1,27 @@
import React, { FC } from 'react';
import { IUser } from '~/redux/auth/types';
import styles from './styles.scss';
import { Grid } from '~/components/containers/Grid';
import { Group } from '~/components/containers/Group';
import { Placeholder } from '~/components/placeholders/Placeholder';
interface IProps {
user?: IUser;
is_loading?: boolean;
}
const ProfileInfo: FC<IProps> = ({ user, is_loading = false }) => (
<Group className={styles.wrap} horizontal>
<div className={styles.avatar} />
<Group className={styles.field}>
<div className={styles.name}>{is_loading ? <Placeholder width="80%" /> : 'User Name'}</div>
<div className={styles.desription}>
{is_loading ? <Placeholder /> : 'Some description here'}
</div>
</Group>
</Group>
);
export { ProfileInfo };