separate setting actions and reducers

This commit is contained in:
Shin'ya Ueoka 2018-01-08 21:54:16 +09:00
parent d23c190cad
commit 6083e70ea0
9 changed files with 96 additions and 16 deletions

View file

@ -0,0 +1,17 @@
import actions from 'settings/actions';
const defaultState = {
value: {},
};
export default function reducer(state = defaultState, action = {}) {
switch (action.type) {
case actions.SETTING_SET_SETTINGS:
return {
value: action.value,
};
default:
return state;
}
}