show login boolean in redux store

This commit is contained in:
2023-02-15 08:34:04 +00:00
parent 316e66a96f
commit fc5217daf8
6 changed files with 65 additions and 51 deletions
+3 -1
View File
@@ -10,6 +10,7 @@ export const currentViewActionTypes = {
SETSHOWREPS: "SETSHOWREPS",
SETREPRESENTATIONMESSAGESENT: "SETREPRESENTATIONMESSAGESENT",
SETREPRESENTATIONRESET: "SETREPRESENTATIONRESET",
SETSHOWLOGIN: "SETSHOWLOGIN",
};
export const getCurrentViewObj = () => (dispatch) => {
@@ -94,9 +95,10 @@ export const setCurrentPage = (currentPage) => (dispatch) => {
});
};
export const setShowReps = (showReps) => (dispatch) => {
export const setShowReps = (showReps, showLogin) => (dispatch) => {
return dispatch({
type: currentViewActionTypes.SETSHOWREPS,
showLogin: showLogin,
showReps: showReps,
});
};