vn-verdnaturachat/app/reducers/reducers.js

14 lines
281 B
JavaScript
Raw Normal View History

2017-08-13 01:35:09 +00:00
import * as types from '../constants/types';
import initialState from './initialState';
export default function settings(state = initialState.settings, action) {
if (action.type === types.SET_ALL_SETTINGS) {
2017-11-13 12:58:35 +00:00
return {
...state,
...action.payload
};
2017-08-13 01:35:09 +00:00
}
return state;
2017-08-13 01:35:09 +00:00
}