mirror of
https://github.com/mastodon/mastodon.git
synced 2024-10-22 18:45:43 +09:00
65647a2472
in the column and what appears as desktop notifications. Settings do not persist yet
18 lines
487 B
JavaScript
18 lines
487 B
JavaScript
import { connect } from 'react-redux';
|
|
import ColumnSettings from '../components/column_settings';
|
|
import { changeNotificationsSetting } from '../../../actions/notifications';
|
|
|
|
const mapStateToProps = state => ({
|
|
settings: state.getIn(['notifications', 'settings'])
|
|
});
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
onChange (key, checked) {
|
|
dispatch(changeNotificationsSetting(key, checked));
|
|
}
|
|
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(ColumnSettings);
|