entSocialSecurity.js 717 Bytes
import * as types from '../constants/ActionTypes';

const initialState = {
    setPolicyList    : {},
    setPolicyAreaList: {},
    getPolicyStore   : {}
};

export default function environment(state = initialState, action) {
    switch (action.type) {
      case types.GET_POLICY_STORE:
        return Object.assign({}, state, {
          getPolicyStore: action.getPolicyStore
        });
      case types.SET_POLICY_LIST:
        return Object.assign({}, state, {
          setPolicyList: action.setPolicyList
        });
      case types.SET_POLICY_AREA_LIST:
        return Object.assign({}, state, {
          setPolicyAreaList: action.setPolicyAreaList
        });
      default:
        return state;
    }
}