Added image picker and cleaned up main and job list screens.

This commit is contained in:
Patrick Fic
2021-02-09 23:12:52 -08:00
parent 2437808c33
commit 29bd2bc03e
29 changed files with 703 additions and 114 deletions

View File

@@ -5,6 +5,7 @@ const INITIAL_STATE = {
cameraJob: null,
documentUploadInProgress: null,
documentUploadError: null,
deleteAfterUpload: true,
};
const appReducer = (state = INITIAL_STATE, action) => {
@@ -37,6 +38,11 @@ const appReducer = (state = INITIAL_STATE, action) => {
documentUploadError: action.payload,
documentUploadInProgress: null,
};
case AppActionTypes.TOGGLE_DLETE_AFTER_UPLOAD:
return {
...state,
deleteAfterUpload: !state.deleteAfterUpload,
};
default:
return state;
}