2017-06-06 16:56:10 +02:00
|
|
|
import { connect } from 'react-redux';
|
2017-12-04 08:26:40 +01:00
|
|
|
import ColumnSettings from 'flavours/glitch/features/community_timeline/components/column_settings';
|
|
|
|
import { changeSetting } from 'flavours/glitch/actions/settings';
|
2017-06-06 16:56:10 +02:00
|
|
|
|
|
|
|
const mapStateToProps = state => ({
|
|
|
|
settings: state.getIn(['settings', 'public']),
|
|
|
|
});
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
|
2018-01-09 16:58:40 +01:00
|
|
|
onChange (path, checked) {
|
|
|
|
dispatch(changeSetting(['public', ...path], checked));
|
2017-06-06 16:56:10 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(ColumnSettings);
|