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