The code powering m.abunchtell.com https://m.abunchtell.com
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

18 wiersze
472 B

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