Last active
June 14, 2020 17:17
Revisions
-
whisher revised this gist
Jun 14, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export const authLoginEffects = (data: AuthLoginFormData) => ( .then((data) => { dispatch(authLoginSuccess(data)); Storage.local.set("auth", data); dispatch(push("/user")); }) .catch((_) => { dispatch(authLoginFailure()); -
whisher created this gist
Jun 14, 2020 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ export const authLoginEffects = (data: AuthLoginFormData) => ( dispatch: ThunkDispatch<{}, {}, AnyAction> ) => { AuthService.login(data) .then((data) => { dispatch(authLoginSuccess(data)); Storage.local.set("auth", data); push('/users') }) .catch((_) => { dispatch(authLoginFailure()); }); };