add setting actions in content
This commit is contained in:
parent
7639e99b75
commit
c6eb5553d0
10 changed files with 74 additions and 25 deletions
13
src/content/reducers/setting.js
Normal file
13
src/content/reducers/setting.js
Normal 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;
|
||||
}
|
||||
}
|
||||
|
Reference in a new issue