1ff70886a1
Co-authored-by: tobi <tobi.smethurst@protonmail.com> Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/88 Co-authored-by: Zoë Bijl <moiety@noreply.codeberg.org> Co-committed-by: Zoë Bijl <moiety@noreply.codeberg.org>
20 lines
530 B
JavaScript
20 lines
530 B
JavaScript
// 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);
|