my cases portal module by loggedin user

This commit is contained in:
robert.bond@test.gov.wales
2021-09-17 16:37:06 +01:00
parent 219e6a4744
commit c96a72f124
26 changed files with 673 additions and 107 deletions
+8
View File
@@ -1,6 +1,7 @@
export const AccountDetailsDataActionTypes = {
GETACCOUNTDETAILSDATA: "GETACCOUNTDETAILSDATA",
SETACCOUNTDETAILSDATA: "SETACCOUNTDETAILSDATA",
SETLOGGEDINUSER: "SETLOGGEDINUSER",
};
export const getAccountDetailsObj = () => (dispatch) => {
@@ -16,6 +17,13 @@ export const setAccountDetails = (accountDetails) => (dispatch) => {
});
};
export const setLoggedInUserId = (loggedinUserId) => (dispatch) => {
return dispatch({
type: AccountDetailsDataActionTypes.SETLOGGEDINUSER,
loggedinUserId: loggedinUserId,
});
};
export const setLogout = () => (dispatch) => {
return dispatch({
type: "USER_LOGOUT",