show login boolean in redux store
This commit is contained in:
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -10,6 +10,7 @@ const currentViewInitialState = {
|
||||
linkedCaseReferences: {},
|
||||
currentPage: 1,
|
||||
showReps: false,
|
||||
showLogin: false,
|
||||
};
|
||||
|
||||
export default function reducer(state = currentViewInitialState, action) {
|
||||
@@ -69,6 +70,7 @@ export default function reducer(state = currentViewInitialState, action) {
|
||||
return {
|
||||
...state,
|
||||
showReps: action.showReps,
|
||||
showLogin: action.showLogin,
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
|
||||
Reference in New Issue
Block a user