aboutsummaryrefslogtreecommitdiff
path: root/src/content/reducers/setting.js
blob: 22fac6f7c68b1486ec411039c8489708ec581716 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import actions from 'content/actions';

const defaultState = {};

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