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

message notifications working

This commit is contained in:
Fedor Katurov 2019-11-13 12:53:29 +07:00
parent 83c9900af1
commit 7583a57b04
11 changed files with 137 additions and 32 deletions
src/redux/auth

View file

@ -34,9 +34,14 @@ export const authLogout = () => ({
type: AUTH_USER_ACTIONS.LOGOUT,
});
export const authOpenProfile = (username: string) => ({
export const authLoggedIn = () => ({
type: AUTH_USER_ACTIONS.LOGGED_IN,
});
export const authOpenProfile = (username: string, tab?: IAuthState['profile']['tab']) => ({
type: AUTH_USER_ACTIONS.OPEN_PROFILE,
username,
tab,
});
export const authSetProfile = (profile: Partial<IAuthState['profile']>) => ({