added timeticket redux

This commit is contained in:
jfrye122
2023-05-10 15:43:40 -04:00
parent c470508505
commit a90955b73d
14 changed files with 177 additions and 51 deletions

View File

@@ -6,8 +6,6 @@ const INITIAL_STATE = {
documentUploadInProgress: null,
documentUploadError: null,
deleteAfterUpload: false,
timeTicketJobId: null,
timeTicketJob: null,
};
const appReducer = (state = INITIAL_STATE, action) => {
@@ -45,16 +43,6 @@ const appReducer = (state = INITIAL_STATE, action) => {
...state,
deleteAfterUpload: !state.deleteAfterUpload,
};
case AppActionTypes.SET_TIME_TICKET_JOB_ID:
return {
...state,
timeTicketJobId: action.payload,
};
case AppActionTypes.SET_TIME_TICKET_JOB:
return {
...state,
timeTicketJob: action.payload,
};
default:
return state;
}