24 lines
577 B
JavaScript
24 lines
577 B
JavaScript
import { LPADataActionTypes } from "./action";
|
|
|
|
const LPADataInitialState = {
|
|
LPAData: {},
|
|
caseStatusObj: {}
|
|
};
|
|
|
|
export default function reducer(state = LPADataInitialState, action) {
|
|
switch (action.type) {
|
|
case LPADataActionTypes.SETLPADATA:
|
|
return {
|
|
...state,
|
|
LPAData: action.LPAData
|
|
};
|
|
case LPADataActionTypes.SETCASESTATUS:
|
|
return {
|
|
...state,
|
|
caseStatusObj: action.caseStatusObj
|
|
};
|
|
default:
|
|
return state;
|
|
}
|
|
}
|