~cytrogen/masto-fe

ref: 434712ea2279340f671bac234fdac264367f935a masto-fe/app/javascript/flavours/glitch/features/notifications/containers/overlay_container.js -rw-r--r-- 530 bytes
434712ea — Cytrogen Convert glitch component SCSS to CSS custom properties (Phase 5+6) a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//  Package imports.
import { connect } from "react-redux";

//  Our imports.
import { markNotificationForDelete } from "flavours/glitch/actions/notifications";

import NotificationOverlay from "../components/overlay";

const mapDispatchToProps = dispatch => ({
  onMarkForDelete(id, yes) {
    dispatch(markNotificationForDelete(id, yes));
  },
});

const mapStateToProps = state => ({
  show: state.getIn(["notifications", "cleaningMode"]),
});

export default connect(mapStateToProps, mapDispatchToProps)(NotificationOverlay);