1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +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

@ -46,10 +46,7 @@ const NotificationsUnconnected: FC<IProps> = ({
return;
}
return authOpenProfile(
(notification as IMessageNotification).content.from!.username,
'messages'
);
return authOpenProfile((notification as IMessageNotification).content.from!.username);
default:
return;
}

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 (