upload fies to storage account for appeal
This commit is contained in:
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user