passing a ref api through form and update progress
This commit is contained in:
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user