1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-28 14:16:41 +07:00

added messages to profile dialog

This commit is contained in:
Fedor Katurov 2019-11-11 16:41:37 +07:00
parent 618c2e3275
commit 298ba7d586
12 changed files with 62 additions and 24 deletions

View file

@ -10,12 +10,13 @@ import { Link } from 'react-router-dom';
interface IProps {
user: Partial<IUser>;
onLogout: () => void;
onProfileClick: () => void;
}
const UserButton: FC<IProps> = ({ user: { username, photo }, onLogout }) => (
const UserButton: FC<IProps> = ({ user: { username, photo }, onProfileClick, onLogout }) => (
<div className={styles.wrap}>
<Group horizontal className={styles.user_button}>
<Link to={`/~${username}`}>{username}</Link>
<div onClick={onProfileClick}>{username}</div>
<div
className={styles.user_avatar}