feature/IO-3182-Phone-Number-Consent - Checkpoint
This commit is contained in:
@@ -123,8 +123,3 @@ export const setImexShopId = (imexshopid) => ({
|
||||
type: UserActionTypes.SET_IMEX_SHOP_ID,
|
||||
payload: imexshopid
|
||||
});
|
||||
|
||||
export const updateBodyshopEnforceConsent = (enforce_sms_consent) => ({
|
||||
type: UserActionTypes.UPDATE_BODYSHOP_ENFORCE_CONSENT,
|
||||
payload: enforce_sms_consent
|
||||
});
|
||||
|
||||
@@ -125,14 +125,7 @@ const userReducer = (state = INITIAL_STATE, action) => {
|
||||
...state,
|
||||
imexshopid: action.payload
|
||||
};
|
||||
case UserActionTypes.UPDATE_BODYSHOP_ENFORCE_CONSENT:
|
||||
return {
|
||||
...state,
|
||||
bodyshop: {
|
||||
...state.bodyshop,
|
||||
enforce_sms_consent: action.payload
|
||||
}
|
||||
};
|
||||
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,6 @@ const UserActionTypes = {
|
||||
CHECK_ACTION_CODE_FAILURE: "CHECK_ACTION_CODE_FAILURE",
|
||||
SET_CURRENT_EULA: "SET_CURRENT_EULA",
|
||||
EULA_ACCEPTED: "EULA_ACCEPTED",
|
||||
SET_IMEX_SHOP_ID: "SET_IMEX_SHOP_ID",
|
||||
UPDATE_BODYSHOP_ENFORCE_CONSENT: "UPDATE_BODYSHOP_ENFORCE_CONSENT"
|
||||
SET_IMEX_SHOP_ID: "SET_IMEX_SHOP_ID"
|
||||
};
|
||||
export default UserActionTypes;
|
||||
|
||||
Reference in New Issue
Block a user