Added status changing information

This commit is contained in:
Patrick Fic
2020-02-06 16:33:23 -08:00
parent f00ae5335f
commit d422edcb0e
15 changed files with 176 additions and 18 deletions

View File

@@ -3,8 +3,9 @@ import UserActionTypes from "./user.types";
const INITIAL_STATE = {
currentUser: {
authorized: null,
language: "en_US"
language: "en_us"
},
bodyshop: null,
error: null
};
@@ -41,6 +42,9 @@ const userReducer = (state = INITIAL_STATE, action) => {
...action.payload //Spread current user details in.
}
};
case UserActionTypes.SET_SHOP_DETAILS:
return { ...state, bodyshop: action.payload };
case UserActionTypes.SIGN_IN_FAILURE:
case UserActionTypes.SIGN_OUT_FAILURE:
case UserActionTypes.EMAIL_SIGN_UP_FAILURE: