search settings in store

This commit is contained in:
Shin'ya Ueoka 2017-10-01 15:04:23 +09:00
parent 7a85b203ac
commit 27aa739caf
7 changed files with 47 additions and 61 deletions

View file

@ -1,14 +1,17 @@
import inputReducer from '../reducers/input';
import consoleReducer from '../reducers/console';
import settingReducer from '../reducers/setting';
const defaultState = {
input: inputReducer(undefined, {}),
console: consoleReducer(undefined, {})
console: consoleReducer(undefined, {}),
setting: settingReducer(undefined, {}),
};
export default function reducer(state = defaultState, action = {}) {
return Object.assign({}, state, {
input: inputReducer(state.input, action),
console: consoleReducer(state.console, action)
console: consoleReducer(state.console, action),
setting: settingReducer(state.setting, action),
});
}