added check answer summary & complete appeal step

This commit is contained in:
2021-07-16 10:02:25 +01:00
parent 4b81d694da
commit 7711d32ab8
13 changed files with 479 additions and 68 deletions
+7
View File
@@ -6,6 +6,7 @@ export const appealTypeDataActionTypes = {
SETAPPEALTYPEIDDATA: "SETAPPEALTYPEIDDATA",
SETAPPEALTYPETITLEDATA: "SETAPPEALTYPETITLEDATA",
UPDATEAPPEALTYPEDATA: "UPDATEAPPEALTYPEDATA",
SETCURRENTSECTION: "SETCURRENTSECTION",
};
export const getAppealTypeObj = () => (dispatch) => {
@@ -34,3 +35,9 @@ export const setAppealTypeID = (appealTypeData) => (dispatch) => {
appealTypeID: appealTypeData,
});
};
export const setCurrentSection = (currentSection) => (dispatch) => {
return dispatch({
type: appealTypeDataActionTypes.SETCURRENTSECTION,
currentSection: currentSection,
});
};
+6
View File
@@ -4,6 +4,7 @@ const appealTypeDataInitialState = {
appealTypeOptions: {},
appealTypeTitle: {},
appealTypeID: {},
currentSection: 1,
};
export default function reducer(state = appealTypeDataInitialState, action) {
@@ -23,6 +24,11 @@ export default function reducer(state = appealTypeDataInitialState, action) {
...state,
appealTypeID: action.appealTypeID,
};
case appealTypeDataActionTypes.SETCURRENTSECTION:
return {
...state,
currentSection: action.currentSection,
};
default:
return state;
}