Added image picker and cleaned up main and job list screens.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user