passing a ref api through form and update progress

This commit is contained in:
2021-07-20 16:46:14 +01:00
parent ff9f2d87c9
commit 1e81f1c97e
13 changed files with 455 additions and 29 deletions
+8
View File
@@ -9,6 +9,7 @@ export const appealTypeDataActionTypes = {
SETCURRENTSECTION: "SETCURRENTSECTION",
SETAPPEALLPA: "SETAPPEALLPA",
SETCASEREFERENCE: "SETCASEREFERENCE",
SETFORMCOMPLETE: "SETFORMCOMPLETE",
};
export const getAppealTypeObj = () => (dispatch) => {
@@ -56,3 +57,10 @@ export const setCaseReference = (caseReference) => (dispatch) => {
caseReference: caseReference,
});
};
export const setFormComplete = (formComplete) => (dispatch) => {
return dispatch({
type: appealTypeDataActionTypes.SETFORMCOMPLETE,
formComplete: formComplete,
});
};
+6
View File
@@ -7,6 +7,7 @@ const appealTypeDataInitialState = {
currentSection: 1,
appealLPA: "",
caseReference: "",
formComplete: "false",
};
export default function reducer(state = appealTypeDataInitialState, action) {
@@ -41,6 +42,11 @@ export default function reducer(state = appealTypeDataInitialState, action) {
...state,
caseReference: action.caseReference,
};
case appealTypeDataActionTypes.SETFORMCOMPLETE:
return {
...state,
formComplete: action.formComplete,
};
default:
return state;
}