2017-08-13 01:35:09 +00:00
|
|
|
import * as types from '../constants/types';
|
|
|
|
import initialState from './initialState';
|
|
|
|
|
2017-08-18 21:30:16 +00:00
|
|
|
export default function settings(state = initialState.settings, action) {
|
2017-08-13 23:02:46 +00:00
|
|
|
if (action.type === types.SET_ALL_SETTINGS) {
|
2017-08-17 06:28:41 +00:00
|
|
|
return { ...state,
|
2017-08-13 23:02:46 +00:00
|
|
|
...action.payload
|
|
|
|
};
|
2017-08-13 01:35:09 +00:00
|
|
|
}
|
2017-08-13 23:02:46 +00:00
|
|
|
|
|
|
|
return state;
|
2017-08-13 01:35:09 +00:00
|
|
|
}
|