Merge work.

This commit is contained in:
Patrick Fic
2020-09-25 13:45:34 -07:00
10 changed files with 67 additions and 19 deletions

View File

@@ -10,6 +10,8 @@ const INITIAL_STATE = {
calculating: false,
error: null,
},
jobReadOnly: false,
billReadOnly: false,
};
const applicationReducer = (state = INITIAL_STATE, action) => {
@@ -63,6 +65,11 @@ const applicationReducer = (state = INITIAL_STATE, action) => {
loading: false,
};
case ApplicationActionTypes.SET_BILL_READONLY:
return { ...state, billReadOnly: action.payload };
case ApplicationActionTypes.SET_JOB_READONLY:
return { ...state, jobReadOnly: action.payload };
default:
return state;
}