aboutsummaryrefslogtreecommitdiff
path: root/src/reducers/setting.js
blob: 7326ed750f738cd9c696cff32fa9ad79782a61ee (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;
  }
}