vn-verdnaturachat/app/reducers/roles.js

16 lines
261 B
JavaScript

import * as types from '../actions/actionsTypes';
const initialState = {};
export default (state = initialState, action) => {
switch (action.type) {
case types.ROLES.SET:
return {
...state,
...action.data
};
default:
return state;
}
};