%PDF- %PDF-
Direktori : /home/emergentqj/actioncivile/pre-auth/def/static/js/reducers/ |
Current File : /home/emergentqj/actioncivile/pre-auth/def/static/js/reducers/lang.js |
import { fromJS } from "immutable"; import LIST_ACTIONS from "../constants/action_types"; const initialState = fromJS({ data: {}, }); const main = (state = initialState, action = {}) => { switch (action.type) { case LIST_ACTIONS.SET_LANGUAGE: return state.set("data", action.data); default: return state; } }; export default main;