aboutsummaryrefslogtreecommitdiff
path: root/src/background/reducers/index.js
blob: dab0c623a365e5fe920aaa147d4e703697e563e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import settingReducer from './setting';

// Make setting reducer instead of re-use
const defaultState = {
  setting: settingReducer(undefined, {}),
};

export default function reducer(state = defaultState, action = {}) {
  return Object.assign({}, state, {
    setting: settingReducer(state.setting, action),
  });
}