upload fies to storage account for appeal

This commit is contained in:
2022-07-07 17:06:56 +01:00
parent b96f3bb916
commit f23ad2a300
28 changed files with 956 additions and 179 deletions
+9
View File
@@ -9,6 +9,7 @@ export const appealTypeDataActionTypes = {
SETCASEREFERENCE: "SETCASEREFERENCE",
SETFORMCOMPLETE: "SETFORMCOMPLETE",
SETDOCUMENTLIST: "SETDOCUMENTLIST",
SETFILELIST: "SETFILELIST",
};
export const getAppealTypeObj = () => (dispatch) => {
@@ -70,3 +71,11 @@ export const setDocumentsList = (documentList) => (dispatch) => {
documentList: documentList,
});
};
export const setFilesForAppeal = (fileList) => (dispatch) => {
console.log("have got here");
return dispatch({
type: appealTypeDataActionTypes.SETFILELIST,
fileList: fileList,
});
};
+6
View File
@@ -9,6 +9,7 @@ const appealTypeDataInitialState = {
caseReference: {},
formComplete: "false",
documentList: {},
fileList: {},
};
export default function reducer(state = appealTypeDataInitialState, action) {
@@ -53,6 +54,11 @@ export default function reducer(state = appealTypeDataInitialState, action) {
...state,
documentList: action.documentList,
};
case appealTypeDataActionTypes.SETFILELIST:
return {
...state,
fileList: action.fileList,
};
default:
return state;
}