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

const defaultState = {
  json: '',
  value: {}
};

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