1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

made saga open register dialog

This commit is contained in:
Fedor Katurov 2020-08-20 11:18:41 +07:00
parent 837b4ee6f3
commit f1463ed5ea
6 changed files with 19 additions and 13 deletions

View file

@ -28,7 +28,7 @@ const mapDispatchToProps = {
userSetLoginError: ACTIONS.userSetLoginError,
authLoginWithSocial: ACTIONS.authLoginWithSocial,
modalShowDialog: MODAL_ACTIONS.modalShowDialog,
authGotOauthEvent: ACTIONS.authGotOauthEvent,
authGotOauthLoginEvent: ACTIONS.authGotOauthLoginEvent,
};
type IProps = ReturnType<typeof mapStateToProps> & typeof mapDispatchToProps & IDialogProps & {};
@ -39,9 +39,8 @@ const LoginDialogUnconnected: FC<IProps> = ({
onRequestClose,
userSendLoginRequest,
userSetLoginError,
authLoginWithSocial,
modalShowDialog,
authGotOauthEvent,
authGotOauthLoginEvent,
}) => {
const [username, setUserName] = useState('');
const [password, setPassword] = useState('');
@ -76,9 +75,9 @@ const LoginDialogUnconnected: FC<IProps> = ({
return;
}
authGotOauthEvent(event.data);
authGotOauthLoginEvent(event.data);
},
[authGotOauthEvent]
[authGotOauthLoginEvent]
);
useEffect(() => {