added check answer summary & complete appeal step
This commit is contained in:
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user