awaiting submissions from storage acc
This commit is contained in:
@@ -3,13 +3,13 @@ export const AccountDetailsDataActionTypes = {
|
||||
GETACCOUNTDETAILSDATA: "GETACCOUNTDETAILSDATA",
|
||||
SETACCOUNTDETAILSDATA: "SETACCOUNTDETAILSDATA",
|
||||
SETLOGGEDINUSER: "SETLOGGEDINUSER",
|
||||
SETLOGGEDINUSEREMAIL: "SETLOGGEDINUSEREMAIL",
|
||||
SETACCOUNTCREATED: "SETACCOUNTCREATED",
|
||||
USER_LOGOUT: "USER_LOGOUT",
|
||||
SETCONTAINERID: "SETCONTAINERID",
|
||||
};
|
||||
|
||||
export const setCookieConsent = (cookieObj) => (dispatch) => {
|
||||
console.log("wertyewrtyt", cookieObj);
|
||||
return dispatch({
|
||||
type: AccountDetailsDataActionTypes.SETCOOKIECONSENT,
|
||||
cookieObj: cookieObj,
|
||||
@@ -36,6 +36,13 @@ export const setLoggedInUserId = (loggedinUserId) => (dispatch) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const setLoggedInUserEmail = (loggedinUserEmail) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: AccountDetailsDataActionTypes.SETLOGGEDINUSEREMAIL,
|
||||
loggedinUserEmail: loggedinUserEmail,
|
||||
});
|
||||
};
|
||||
|
||||
export const setLogout = () => (dispatch) => {
|
||||
return dispatch({
|
||||
type: "USER_LOGOUT",
|
||||
|
||||
@@ -3,6 +3,7 @@ import { AccountDetailsDataActionTypes } from "./action";
|
||||
const AccountDetailsDataInitialState = {
|
||||
accountDetails: {},
|
||||
loggedinUserId: "",
|
||||
loggedinUserEmail: "",
|
||||
accCr: false,
|
||||
cookieObj: "",
|
||||
containerID: "",
|
||||
@@ -23,6 +24,11 @@ export default function reducer(
|
||||
...state,
|
||||
loggedinUserId: action.loggedinUserId,
|
||||
};
|
||||
case AccountDetailsDataActionTypes.SETLOGGEDINUSEREMAIL:
|
||||
return {
|
||||
...state,
|
||||
loggedinUserEmail: action.loggedinUserEmail,
|
||||
};
|
||||
case AccountDetailsDataActionTypes.SETACCOUNTCREATED:
|
||||
return {
|
||||
...state,
|
||||
|
||||
Reference in New Issue
Block a user