The code powering m.abunchtell.com https://m.abunchtell.com
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

18 righe
488 B

  1. import { connect } from 'react-redux';
  2. import ColumnSettings from '../../community_timeline/components/column_settings';
  3. import { changeSetting } from '../../../actions/settings';
  4. const mapStateToProps = state => ({
  5. settings: state.getIn(['settings', 'public']),
  6. });
  7. const mapDispatchToProps = dispatch => ({
  8. onChange (key, checked) {
  9. dispatch(changeSetting(['public', ...key], checked));
  10. },
  11. });
  12. export default connect(mapStateToProps, mapDispatchToProps)(ColumnSettings);