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

moved accounts to settings

This commit is contained in:
Fedor Katurov 2020-07-28 14:11:04 +07:00
parent 3e6ede51d4
commit 108f17b0e9
9 changed files with 78 additions and 42 deletions

View file

@ -22,10 +22,6 @@ const UserButton: FC<IProps> = ({ user: { username, photo }, authOpenProfile, on
authOpenProfile(username, 'settings');
}, [authOpenProfile, username]);
const onAccountsOpen = useCallback(() => {
authOpenProfile(username, 'accounts');
}, [authOpenProfile, username]);
return (
<div className={styles.wrap}>
<Group horizontal className={styles.user_button}>
@ -42,7 +38,6 @@ const UserButton: FC<IProps> = ({ user: { username, photo }, authOpenProfile, on
<div className={styles.menu}>
<div onClick={onProfileOpen}>Профиль</div>
<div onClick={onSettingsOpen}>Настройки</div>
<div onClick={onAccountsOpen}>Аккаунты</div>
<div onClick={onLogout}>Выдох</div>
</div>
</div>