diffFinancial.js
640 Bytes
import * as types from '../constants/ActionTypes';
const initialState = {
diffStatic:{},
diffList :{},
personDiffList:{}
};
export default function environment(state = initialState,action) {
switch(action.type) {
case types.DIFF_STATIC:
return Object.assign({}, state, {
diffStatic: action.diffStatic
});
case types.DIFF_LIST:
return Object.assign({}, state, {
diffList: action.diffList
});
case types.PERSON_DIFF_LIST:
return Object.assign({}, state, {
personDiffList: action.personDiffList
});
default:
return state;
}
}