A fork of https://github.com/ueokande/vim-vixen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
594 B
18 lines
594 B
import inputReducer from 'reducers/input'; |
|
import settingReducer from 'settings/reducers/setting'; |
|
import followReducer from 'reducers/follow'; |
|
|
|
// Make setting reducer instead of re-use |
|
const defaultState = { |
|
input: inputReducer(undefined, {}), |
|
setting: settingReducer(undefined, {}), |
|
follow: followReducer(undefined, {}), |
|
}; |
|
|
|
export default function reducer(state = defaultState, action = {}) { |
|
return Object.assign({}, state, { |
|
input: inputReducer(state.input, action), |
|
setting: settingReducer(state.setting, action), |
|
follow: followReducer(state.follow, action), |
|
}); |
|
}
|
|
|