B
Size: a a a
B
nn
KS
KS
nn
B
nn
nn
KS
KS
KS
nn
export function submitLogin({email, password})
{
return (dispatch) =>
jwtService.signInWithEmailAndPassword(email, password)
.then((user) => {
dispatch(setUserData(user));
return dispatch({
type: LOGIN_SUCCESS
});
}
)
.catch(error => {
return dispatch({
type : LOGIN_ERROR,
payload: error
});
});
}
S
export function submitLogin({email, password})
{
return (dispatch) =>
jwtService.signInWithEmailAndPassword(email, password)
.then((user) => {
dispatch(setUserData(user));
return dispatch({
type: LOGIN_SUCCESS
});
}
)
.catch(error => {
return dispatch({
type : LOGIN_ERROR,
payload: error
});
});
}
KS
nn
nn
nn
KS
export function submitLogin({email, password})
{
return (dispatch) =>
jwtService.signInWithEmailAndPassword(email, password)
.then((user) => {
dispatch(setUserData(user));
return dispatch({
type: LOGIN_SUCCESS
});
}
)
.catch(error => {
return dispatch({
type : LOGIN_ERROR,
payload: error
});
});
}
KS
nn