updated storage account stuff to take auth id
This commit is contained in:
@@ -5,6 +5,7 @@ export const AccountDetailsDataActionTypes = {
|
||||
SETLOGGEDINUSER: "SETLOGGEDINUSER",
|
||||
SETACCOUNTCREATED: "SETACCOUNTCREATED",
|
||||
USER_LOGOUT: "USER_LOGOUT",
|
||||
SETCONTAINERID: "SETCONTAINERID",
|
||||
};
|
||||
|
||||
export const setCookieConsent = (cookieObj) => (dispatch) => {
|
||||
@@ -47,3 +48,10 @@ export const setAccCr = (accCr) => (dispatch) => {
|
||||
accCr: accCr,
|
||||
});
|
||||
};
|
||||
|
||||
export const setContainerID = (containerID) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: AccountDetailsDataActionTypes.SETCONTAINERID,
|
||||
containerID: containerID,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -5,6 +5,7 @@ const AccountDetailsDataInitialState = {
|
||||
loggedinUserId: "",
|
||||
accCr: false,
|
||||
cookieObj: "",
|
||||
containerID: "",
|
||||
};
|
||||
|
||||
export default function reducer(
|
||||
@@ -32,6 +33,11 @@ export default function reducer(
|
||||
...state,
|
||||
cookieObj: action.cookieObj,
|
||||
};
|
||||
case AccountDetailsDataActionTypes.SETCONTAINERID:
|
||||
return {
|
||||
...state,
|
||||
containerID: action.containerID,
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user