]> cat aescling's git repositories - mastodon.git/blob - app/javascript/mastodon/features/ui/containers/notifications_container.js
Remove unused variables (#3906)
[mastodon.git] / app / javascript / mastodon / features / ui / containers / notifications_container.js
1 import { connect } from 'react-redux';
2 import { NotificationStack } from 'react-notification';
3 import { dismissAlert } from '../../../actions/alerts';
4 import { getAlerts } from '../../../selectors';
5
6 const mapStateToProps = state => ({
7 notifications: getAlerts(state),
8 });
9
10 const mapDispatchToProps = (dispatch) => {
11 return {
12 onDismiss: alert => {
13 dispatch(dismissAlert(alert));
14 },
15 };
16 };
17
18 export default connect(mapStateToProps, mapDispatchToProps)(NotificationStack);
This page took 0.0758450000000001 seconds and 4 git commands to generate.