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:
parent
f6baedc4cd
commit
618c2e3275
28 changed files with 315 additions and 58 deletions
27
src/containers/profile/ProfileInfo/index.tsx
Normal file
27
src/containers/profile/ProfileInfo/index.tsx
Normal 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 };
|
Loading…
Add table
Add a link
Reference in a new issue