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.

18 lines
529 B

  1. // Package imports.
  2. import { connect } from 'react-redux';
  3. // Our imports.
  4. import NotificationOverlay from '../components/overlay';
  5. import { markNotificationForDelete } from 'flavours/glitch/actions/notifications';
  6. const mapDispatchToProps = dispatch => ({
  7. onMarkForDelete(id, yes) {
  8. dispatch(markNotificationForDelete(id, yes));
  9. },
  10. });
  11. const mapStateToProps = state => ({
  12. show: state.getIn(['notifications', 'cleaningMode']),
  13. });
  14. export default connect(mapStateToProps, mapDispatchToProps)(NotificationOverlay);