reps wip
This commit is contained in:
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user