This repository has been archived on 2023-07-01. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/app/javascript/flavours/glitch/features/notifications/containers/overlay_container.js

19 lines
529 B
JavaScript
Raw Permalink Normal View History

2017-11-18 04:11:18 +01:00
// Package imports.
import { connect } from 'react-redux';
// Our imports.
import NotificationOverlay from '../components/overlay';
2017-12-04 08:26:40 +01:00
import { markNotificationForDelete } from 'flavours/glitch/actions/notifications';
2017-11-18 04:11:18 +01: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);