index reducer in background

This commit is contained in:
Shin'ya Ueoka 2017-10-14 22:11:54 +09:00
parent fc90f78e26
commit 157ebaef9c
3 changed files with 18 additions and 12 deletions

View file

@ -0,0 +1,12 @@
import settingReducer from 'settings/reducers/setting';
// Make setting reducer instead of re-use
const defaultState = {
setting: settingReducer(undefined, {}),
};
export default function reducer(state = defaultState, action = {}) {
return Object.assign({}, state, {
setting: settingReducer(state.setting, action),
});
}