mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
actually getting event about adding account
This commit is contained in:
parent
5396cf7611
commit
e94d776ee5
12 changed files with 252 additions and 136 deletions
|
@ -22,9 +22,9 @@ const UserButton: FC<IProps> = ({ user: { username, photo }, authOpenProfile, on
|
|||
authOpenProfile(username, 'settings');
|
||||
}, [authOpenProfile, username]);
|
||||
|
||||
// const onMessagesOpen = useCallback(() => {
|
||||
// authOpenProfile(username, 'messages');
|
||||
// }, [authOpenProfile, username]);
|
||||
const onAccountsOpen = useCallback(() => {
|
||||
authOpenProfile(username, 'accounts');
|
||||
}, [authOpenProfile, username]);
|
||||
|
||||
return (
|
||||
<div className={styles.wrap}>
|
||||
|
@ -42,6 +42,7 @@ 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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue