This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-11-17 19:11:18 -08:00
|
|
|
// Package imports.
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
|
|
|
// Our imports.
|
|
|
|
import NotificationOverlay from '../components/overlay';
|
2017-12-03 23:26:40 -08:00
|
|
|
import { markNotificationForDelete } from 'flavours/glitch/actions/notifications';
|
2017-11-17 19:11:18 -08:00
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
onMarkForDelete(id, yes) {
|
|
|
|
dispatch(markNotificationForDelete(id, yes));
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
const mapStateToProps = state => ({
|
|
|
|
show: state.getIn(['notifications', 'cleaningMode']),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(NotificationOverlay);
|