This commit is contained in:
2022-12-16 11:36:01 +00:00
parent f6d934d951
commit 98aefdd867
36 changed files with 1258 additions and 371 deletions
+8
View File
@@ -7,6 +7,7 @@ export const currentViewActionTypes = {
SETREPRESENTATIONSUBMITCONFIRMATION: "SETREPRESENTATIONSUBMITCONFIRMATION",
SETCURRENTLINKEDCASES: "SETCURRENTLINKEDCASES",
SETCURRENTPAGE: "SETCURRENTPAGE",
SETSHOWREPS: "SETSHOWREPS",
};
export const getCurrentViewObj = () => (dispatch) => {
@@ -72,3 +73,10 @@ export const setCurrentPage = (currentPage) => (dispatch) => {
currentPage: currentPage,
});
};
export const setShowReps = (showReps) => (dispatch) => {
return dispatch({
type: currentViewActionTypes.SETSHOWREPS,
showReps: showReps,
});
};
+5
View File
@@ -49,6 +49,11 @@ export default function reducer(state = currentViewInitialState, action) {
...state,
currentPage: action.currentPage,
};
case currentViewActionTypes.SETSHOWREPS:
return {
...state,
showReps: action.showReps,
};
default:
return state;
}