|
|
@ -1,14 +1,17 @@ |
|
|
|
|
|
|
|
import addonReducer from './addon'; |
|
|
|
import inputReducer from './input'; |
|
|
|
import inputReducer from './input'; |
|
|
|
import followReducer from './follow'; |
|
|
|
import followReducer from './follow'; |
|
|
|
|
|
|
|
|
|
|
|
// Make setting reducer instead of re-use
|
|
|
|
// Make setting reducer instead of re-use
|
|
|
|
const defaultState = { |
|
|
|
const defaultState = { |
|
|
|
|
|
|
|
addon: addonReducer(undefined, {}), |
|
|
|
input: inputReducer(undefined, {}), |
|
|
|
input: inputReducer(undefined, {}), |
|
|
|
follow: followReducer(undefined, {}), |
|
|
|
follow: followReducer(undefined, {}), |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
export default function reducer(state = defaultState, action = {}) { |
|
|
|
export default function reducer(state = defaultState, action = {}) { |
|
|
|
return Object.assign({}, state, { |
|
|
|
return Object.assign({}, state, { |
|
|
|
|
|
|
|
addon: addonReducer(state.addon, action), |
|
|
|
input: inputReducer(state.input, action), |
|
|
|
input: inputReducer(state.input, action), |
|
|
|
follow: followReducer(state.follow, action), |
|
|
|
follow: followReducer(state.follow, action), |
|
|
|
}); |
|
|
|
}); |
|
|
|