aboutsummaryrefslogtreecommitdiff
path: root/src/reducers/setting.js
blob: 735d4fb0400566006159ba4d9ad25b13a87cd049 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import actions from '../actions';

const defaultState = {
  settings: {}
};

export default function reducer(state = defaultState, action = {}) {
  switch (action.type) {
  case actions.SETTING_SET_SETTINGS:
    return Object.assign({}, state, {
      settings: action.settings,
    });
  default:
    return state;
  }
}