save settings on the fly

This commit is contained in:
Shin'ya Ueoka 2017-10-09 17:03:52 +09:00
parent 6669f6b6ef
commit 805d1395fc
5 changed files with 45 additions and 27 deletions

View file

@ -1,6 +1,7 @@
import actions from 'settings/actions';
const defaultState = {
source: '',
json: '',
value: {}
};
@ -9,6 +10,7 @@ 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,
};