loading indicator on username submit
This commit is contained in:
parent
eafa97daf9
commit
2fbd07e142
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue