blob: a61c09fb7c81590ef673d26cf37c338f75136380 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import actions from 'settings/actions';
const defaultState = {
source: '',
json: '',
value: {}
};
export default function reducer(state = defaultState, action = {}) {
switch (action.type) {
case actions.SETTING_SET_SETTINGS:
return {
source: action.source,
json: action.json,
value: action.value,
};
default:
return state;
}
}
|