65 lines
1.8 KiB
JavaScript
65 lines
1.8 KiB
JavaScript
export const AccountDetailsDataActionTypes = {
|
|
SETCOOKIECONSENT: "SETCOOKIECONSENT",
|
|
GETACCOUNTDETAILSDATA: "GETACCOUNTDETAILSDATA",
|
|
SETACCOUNTDETAILSDATA: "SETACCOUNTDETAILSDATA",
|
|
SETLOGGEDINUSER: "SETLOGGEDINUSER",
|
|
SETLOGGEDINUSEREMAIL: "SETLOGGEDINUSEREMAIL",
|
|
SETACCOUNTCREATED: "SETACCOUNTCREATED",
|
|
USER_LOGOUT: "USER_LOGOUT",
|
|
SETCONTAINERID: "SETCONTAINERID",
|
|
};
|
|
|
|
export const setCookieConsent = (cookieObj) => (dispatch) => {
|
|
return dispatch({
|
|
type: AccountDetailsDataActionTypes.SETCOOKIECONSENT,
|
|
cookieObj: cookieObj,
|
|
});
|
|
};
|
|
|
|
export const getAccountDetailsObj = () => (dispatch) => {
|
|
return dispatch({
|
|
type: AccountDetailsDataActionTypes.GETACCOUNTDETAILSDATA,
|
|
});
|
|
};
|
|
|
|
export const setAccountDetails = (accountDetails) => (dispatch) => {
|
|
return dispatch({
|
|
type: AccountDetailsDataActionTypes.SETACCOUNTDETAILSDATA,
|
|
accountDetails: accountDetails,
|
|
});
|
|
};
|
|
|
|
export const setLoggedInUserId = (loggedinUserId) => (dispatch) => {
|
|
return dispatch({
|
|
type: AccountDetailsDataActionTypes.SETLOGGEDINUSER,
|
|
loggedinUserId: loggedinUserId,
|
|
});
|
|
};
|
|
|
|
export const setLoggedInUserEmail = (loggedinUserEmail) => (dispatch) => {
|
|
return dispatch({
|
|
type: AccountDetailsDataActionTypes.SETLOGGEDINUSEREMAIL,
|
|
loggedinUserEmail: loggedinUserEmail,
|
|
});
|
|
};
|
|
|
|
export const setLogout = () => (dispatch) => {
|
|
return dispatch({
|
|
type: "USER_LOGOUT",
|
|
});
|
|
};
|
|
|
|
export const setAccCr = (accCr) => (dispatch) => {
|
|
return dispatch({
|
|
type: AccountDetailsDataActionTypes.SETACCOUNTCREATED,
|
|
accCr: accCr,
|
|
});
|
|
};
|
|
|
|
export const setContainerID = (containerID) => (dispatch) => {
|
|
return dispatch({
|
|
type: AccountDetailsDataActionTypes.SETCONTAINERID,
|
|
containerID: containerID,
|
|
});
|
|
};
|