17 lines
323 B
JavaScript
17 lines
323 B
JavaScript
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;
|
|
}
|
|
}
|
|
|