separate settings
This commit is contained in:
parent
541449b1fc
commit
58123210ab
13 changed files with 17 additions and 34 deletions
|
@ -1,17 +0,0 @@
|
|||
import actions from 'actions';
|
||||
|
||||
const defaultState = {
|
||||
settings: {}
|
||||
};
|
||||
|
||||
export default function reducer(state = defaultState, action = {}) {
|
||||
switch (action.type) {
|
||||
case actions.SETTING_SET_SETTINGS:
|
||||
return Object.assign({}, state, {
|
||||
settings: action.settings,
|
||||
});
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
}
|
||||
|
Reference in a new issue