blob: 4be8facdcffe76b069e914e386c2be5ddb7cee6d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import settingReducer from 'settings/reducers/setting';
// Make setting reducer instead of re-use
const defaultState = {
setting: settingReducer(undefined, {}),
};
export default function reducer(state = defaultState, action = {}) {
return Object.assign({}, state, {
setting: settingReducer(state.setting, action),
});
}
|