aboutsummaryrefslogtreecommitdiff
path: root/src/reducers/index.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-14 21:40:28 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-14 21:47:53 +0900
commit6127fdc285bc430b48259bd6e90b69623b4e76cc (patch)
tree3208d48375a95a7627ea763b3619a161b732feb4 /src/reducers/index.js
parentc42ac8fac48f9d56b54af4818917082fda9af21e (diff)
use input as store/reducer
Diffstat (limited to 'src/reducers/index.js')
-rw-r--r--src/reducers/index.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/reducers/index.js b/src/reducers/index.js
index d49af7d..6cc1a31 100644
--- a/src/reducers/index.js
+++ b/src/reducers/index.js
@@ -1,7 +1,11 @@
+import inputReducer from '../reducers/input';
+
const defaultState = {
+ input: inputReducer(undefined, {})
};
-export default function reducer(state = defaultState/*, action = {}*/) {
+export default function reducer(state = defaultState, action = {}) {
return Object.assign({}, state, {
+ input: inputReducer(state.input, action)
});
}