loading indicator on username submit

This commit is contained in:
Diego Mello 2017-11-06 16:15:29 -02:00
parent eafa97daf9
commit 2fbd07e142
1 changed files with 6 additions and 0 deletions

View File

@ -58,9 +58,15 @@ export default function login(state = initialState, action) {
failure: false,
error: ''
};
case types.LOGIN.SET_USERNAME_SUBMIT:
return {
...state,
isFetching: true
};
case types.LOGIN.SET_USERNAME_SUCCESS:
return {
...state,
isFetching: false,
isRegistering: false
};
default: