]>
cat aescling's git repositories - mastodon.git/blob - 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';
6 const mapStateToProps
= state
=> ({
7 notifications: getAlerts(state
),
10 const mapDispatchToProps
= (dispatch
) => {
13 dispatch(dismissAlert(alert
));
18 export default connect(mapStateToProps
, mapDispatchToProps
)(NotificationStack
);
This page took 0.0758450000000001 seconds and 4 git commands to generate.