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,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
export const awaitingSubmissionActionTypes = {
|
||||
GETAWAITINGSUBMISSION: "GETAWAITINGSUBMISSION",
|
||||
SETAWAITINGSUBMISSION: "SETAWAITINGSUBMISSION",
|
||||
SETAWAITINGSUBMISSIONFROMBLOB: "SETAWAITINGSUBMISSIONFROMBLOB",
|
||||
SETAWAITINGSUBMISSIONDETAILS: "SETAWAITINGSUBMISSIONDETAILS",
|
||||
UPDATEAWAITINGSUBMISSION: "UPDATEAWAITINGSUBMISSION",
|
||||
};
|
||||
@@ -18,6 +19,14 @@ export const setAwaitingSubmission = (awaitingSubmission) => (dispatch) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const setAwaitingSubmissionFromBlob =
|
||||
(awaitingSubmissionFromBlob) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: awaitingSubmissionActionTypes.SETAWAITINGSUBMISSIONFROMBLOB,
|
||||
awaitingSubmissionFromBlob: awaitingSubmissionFromBlob,
|
||||
});
|
||||
};
|
||||
|
||||
export const setAwaitingSubmissionDetails =
|
||||
(awaitingSubmissionDetails) => (dispatch) => {
|
||||
return dispatch({
|
||||
|
||||
@@ -3,6 +3,7 @@ import { awaitingSubmissionActionTypes } from "./action";
|
||||
const awaitingSubmissionInitialState = {
|
||||
awaitingSubmission: {},
|
||||
awaitingSubmissionDetails: {},
|
||||
awaitingSubmissionFromBlob: {},
|
||||
};
|
||||
|
||||
export default function reducer(
|
||||
@@ -15,6 +16,11 @@ export default function reducer(
|
||||
...state,
|
||||
awaitingSubmission: action.awaitingSubmission,
|
||||
};
|
||||
case awaitingSubmissionActionTypes.SETAWAITINGSUBMISSIONFROMBLOB:
|
||||
return {
|
||||
...state,
|
||||
awaitingSubmissionFromBlob: action.awaitingSubmissionFromBlob,
|
||||
};
|
||||
case awaitingSubmissionActionTypes.SETAWAITINGSUBMISSIONDETAILS:
|
||||
return {
|
||||
...state,
|
||||
|
||||
Reference in New Issue
Block a user