Added updating of display name to profile. Added employees table.

This commit is contained in:
Patrick Fic
2020-02-04 12:42:20 -08:00
parent 55cec20914
commit de6ca52fb8
33 changed files with 514 additions and 39 deletions

View File

@@ -33,10 +33,17 @@ const userReducer = (state = INITIAL_STATE, action) => {
...state,
language: action.payload
};
case UserActionTypes.UPDATE_USER_DETAILS_SUCCESS:
return {
...state,
currentUser: {
...state.currentUser,
...action.payload //Spread current user details in.
}
};
case UserActionTypes.SIGN_IN_FAILURE:
case UserActionTypes.SIGN_OUT_FAILURE:
case UserActionTypes.EMAIL_SIGN_UP_FAILURE:
console.log("Reduced getting called.");
return {
...state,
error: action.payload