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

removed profile redux items

This commit is contained in:
Fedor Katurov 2022-01-08 18:01:38 +07:00
parent 5b28313afd
commit 3c0571816c
55 changed files with 488 additions and 710 deletions

View file

@ -16,12 +16,12 @@ interface IProps {
const UserButton: FC<IProps> = ({ user: { username, photo }, authOpenProfile, onLogout }) => {
const onProfileOpen = useCallback(() => {
if (!username) return;
authOpenProfile(username, 'profile');
authOpenProfile(username);
}, [authOpenProfile, username]);
const onSettingsOpen = useCallback(() => {
if (!username) return;
authOpenProfile(username, 'settings');
authOpenProfile(username);
}, [authOpenProfile, username]);
return (