about summary refs log tree commit diff
path: root/app/javascript/themes/glitch/features/public_timeline/containers/column_settings_container.js
blob: 0185a7724cc2af0c232cfea31fca35f285736538 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { connect } from 'react-redux';
import ColumnSettings from 'themes/glitch/features/community_timeline/components/column_settings';
import { changeSetting } from 'themes/glitch/actions/settings';

const mapStateToProps = state => ({
  settings: state.getIn(['settings', 'public']),
});

const mapDispatchToProps = dispatch => ({

  onChange (key, checked) {
    dispatch(changeSetting(['public', ...key], checked));
  },

});

export default connect(mapStateToProps, mapDispatchToProps)(ColumnSettings);