diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-21 19:40:22 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-21 19:40:22 +0900 |
commit | dc6d93c1da28ed17fe1bc5be07bdfab30a40dd66 (patch) | |
tree | 8c1474bf6b4999a59db789d3b00ed455f5411f6a /src/content/reducers | |
parent | 59f7ef205df4750063c755a7b8834bfd7509da83 (diff) |
enable/disable addon by keys
Diffstat (limited to 'src/content/reducers')
-rw-r--r-- | src/content/reducers/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/content/reducers/index.js b/src/content/reducers/index.js index c026a19..7cf318e 100644 --- a/src/content/reducers/index.js +++ b/src/content/reducers/index.js @@ -1,14 +1,17 @@ +import addonReducer from './addon'; import inputReducer from './input'; import followReducer from './follow'; // Make setting reducer instead of re-use const defaultState = { + addon: addonReducer(undefined, {}), input: inputReducer(undefined, {}), follow: followReducer(undefined, {}), }; export default function reducer(state = defaultState, action = {}) { return Object.assign({}, state, { + addon: addonReducer(state.addon, action), input: inputReducer(state.input, action), follow: followReducer(state.follow, action), }); |