separate settings

This commit is contained in:
Shin'ya Ueoka 2017-10-08 14:44:21 +09:00
parent 541449b1fc
commit 58123210ab
13 changed files with 17 additions and 34 deletions

View file

@ -0,0 +1,17 @@
import actions from 'settings/actions';
const defaultState = {
settings: {}
};
export default function reducer(state = defaultState, action = {}) {
switch (action.type) {
case actions.SETTING_SET_SETTINGS:
return Object.assign({}, state, {
settings: action.settings,
});
default:
return state;
}
}