diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-13 22:30:05 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-13 22:30:05 +0900 |
commit | 28bfa3ac8124d3453cd539db26da4f4703e783df (patch) | |
tree | dd4461af8343a7d5c9fc13cc51cd0fd5edd0285e /src/content/reducers | |
parent | 37840c2abb02948d36cdcfaab9063f3ea67fdb6b (diff) | |
parent | 803e6ea7af60107182356b5fda8e3c2ddfacaefa (diff) |
Merge pull request #431 from ueokande/command-completions
Command completions
Diffstat (limited to 'src/content/reducers')
-rw-r--r-- | src/content/reducers/index.js | 33 |
1 files changed, 9 insertions, 24 deletions
diff --git a/src/content/reducers/index.js b/src/content/reducers/index.js index c3a474e..6e6a147 100644 --- a/src/content/reducers/index.js +++ b/src/content/reducers/index.js @@ -1,25 +1,10 @@ -import addonReducer from './addon'; -import findReducer from './find'; -import settingReducer from './setting'; -import inputReducer from './input'; -import followControllerReducer from './follow-controller'; +import { combineReducers } from 'redux'; +import addon from './addon'; +import find from './find'; +import setting from './setting'; +import input from './input'; +import followController from './follow-controller'; -// Make setting reducer instead of re-use -const defaultState = { - addon: addonReducer(undefined, {}), - find: findReducer(undefined, {}), - setting: settingReducer(undefined, {}), - input: inputReducer(undefined, {}), - followController: followControllerReducer(undefined, {}), -}; - -export default function reducer(state = defaultState, action = {}) { - return { - ...state, - addon: addonReducer(state.addon, action), - find: findReducer(state.find, action), - setting: settingReducer(state.setting, action), - input: inputReducer(state.input, action), - followController: followControllerReducer(state.followController, action), - }; -} +export default combineReducers({ + addon, find, setting, input, followController, +}); |