blob: 5792e97e3753f86a3d6009e305a257d11bc129d4 (
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 '../components/column_settings';
import { changeSetting } from '../../../actions/settings';
const mapStateToProps = state => ({
settings: state.getIn(['settings', 'notifications'])
});
const mapDispatchToProps = dispatch => ({
onChange (key, checked) {
dispatch(changeSetting(['notifications', ...key], checked));
}
});
export default connect(mapStateToProps, mapDispatchToProps)(ColumnSettings);
|