2018-08-30 14:25:33 +00:00
|
|
|
import { connect } from 'react-redux';
|
2019-06-03 13:18:49 +00:00
|
|
|
import { initSettings, toggleSetting } from '../actions';
|
2019-07-18 11:52:47 +00:00
|
|
|
import { getBlockedServices, setBlockedServices } from '../actions/services';
|
2018-08-30 14:25:33 +00:00
|
|
|
import Settings from '../components/Settings';
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => {
|
2019-07-18 11:52:47 +00:00
|
|
|
const { settings, services } = state;
|
2019-01-24 15:51:50 +00:00
|
|
|
const props = {
|
|
|
|
settings,
|
2019-07-18 11:52:47 +00:00
|
|
|
services,
|
2019-01-24 15:51:50 +00:00
|
|
|
};
|
2018-08-30 14:25:33 +00:00
|
|
|
return props;
|
|
|
|
};
|
|
|
|
|
|
|
|
const mapDispatchToProps = {
|
|
|
|
initSettings,
|
|
|
|
toggleSetting,
|
2019-07-18 11:52:47 +00:00
|
|
|
getBlockedServices,
|
|
|
|
setBlockedServices,
|
2018-08-30 14:25:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
mapStateToProps,
|
|
|
|
mapDispatchToProps,
|
|
|
|
)(Settings);
|