add setting actions in content

This commit is contained in:
Shin'ya Ueoka 2017-10-22 17:45:16 +09:00
parent 7639e99b75
commit c6eb5553d0
10 changed files with 74 additions and 25 deletions

View file

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