Added report center IO-636
This commit is contained in:
@@ -20,12 +20,12 @@ const INITIAL_STATE = {
|
||||
reconciliation: { ...baseModal },
|
||||
payment: { ...baseModal },
|
||||
jobCosting: { ...baseModal },
|
||||
reportCenter: { ...baseModal },
|
||||
};
|
||||
|
||||
const modalsReducer = (state = INITIAL_STATE, action) => {
|
||||
switch (action.type) {
|
||||
case ModalsActionTypes.TOGGLE_MODAL_VISIBLE:
|
||||
//logImEXEvent("redux_toggle_modal_visible", { modal: action.payload });
|
||||
return {
|
||||
...state,
|
||||
[action.payload]: {
|
||||
@@ -34,8 +34,6 @@ const modalsReducer = (state = INITIAL_STATE, action) => {
|
||||
},
|
||||
};
|
||||
case ModalsActionTypes.SET_MODAL_CONTEXT:
|
||||
// logImEXEvent("redux_set_modal_context", { modal: action.payload.modal });
|
||||
|
||||
return {
|
||||
...state,
|
||||
[action.payload.modal]: {
|
||||
|
||||
@@ -55,3 +55,8 @@ export const selectJobCosting = createSelector(
|
||||
[selectModals],
|
||||
(modals) => modals.jobCosting
|
||||
);
|
||||
|
||||
export const selectReportCenter = createSelector(
|
||||
[selectModals],
|
||||
(modals) => modals.reportCenter
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user