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

#23 added superpowers switch

This commit is contained in:
Fedor Katurov 2021-03-19 14:15:04 +07:00
parent e38090c755
commit 756840f173
16 changed files with 178 additions and 25 deletions

View file

@ -20,6 +20,11 @@ export const authSetToken = (token: IAuthState['token']) => ({
token,
});
export const authSetState = (payload: Partial<IAuthState>) => ({
type: AUTH_USER_ACTIONS.SET_STATE,
payload,
});
export const gotAuthPostMessage = ({ token }: { token: string }) => ({
type: AUTH_USER_ACTIONS.GOT_AUTH_POST_MESSAGE,
token,