You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
529 B
19 lines
529 B
7 years ago
|
// Package imports.
|
||
|
import { connect } from 'react-redux';
|
||
|
|
||
|
// Our imports.
|
||
|
import NotificationOverlay from '../components/overlay';
|
||
7 years ago
|
import { markNotificationForDelete } from 'flavours/glitch/actions/notifications';
|
||
7 years ago
|
|
||
|
const mapDispatchToProps = dispatch => ({
|
||
|
onMarkForDelete(id, yes) {
|
||
|
dispatch(markNotificationForDelete(id, yes));
|
||
|
},
|
||
|
});
|
||
|
|
||
|
const mapStateToProps = state => ({
|
||
|
show: state.getIn(['notifications', 'cleaningMode']),
|
||
|
});
|
||
|
|
||
|
export default connect(mapStateToProps, mapDispatchToProps)(NotificationOverlay);
|