Adjusted camera stack and app reducer.

This commit is contained in:
Patrick Fic
2020-11-09 20:39:45 -08:00
parent ab1e04f564
commit e2e6f0b510
11 changed files with 437 additions and 310 deletions

View File

@@ -2,6 +2,7 @@ import AppActionTypes from "./app.types";
const INITIAL_STATE = {
cameraJobId: null,
cameraJob: null,
documentUploadInProgress: null,
documentUploadError: null,
};
@@ -13,6 +14,11 @@ const appReducer = (state = INITIAL_STATE, action) => {
...state,
cameraJobId: action.payload,
};
case AppActionTypes.SET_CAMERA_JOB:
return {
...state,
cameraJob: action.payload,
};
case AppActionTypes.DOCUMENT_UPLOAD_START:
return {
...state,