The code powering m.abunchtell.com https://m.abunchtell.com
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

22 Zeilen
513 B

  1. import { connect } from 'react-redux';
  2. import { NotificationStack } from 'react-notification';
  3. import {
  4. dismissAlert,
  5. clearAlerts
  6. } from '../../../actions/alerts';
  7. import { getAlerts } from '../../../selectors';
  8. const mapStateToProps = (state, props) => ({
  9. notifications: getAlerts(state)
  10. });
  11. const mapDispatchToProps = (dispatch) => {
  12. return {
  13. onDismiss: alert => {
  14. dispatch(dismissAlert(alert));
  15. }
  16. };
  17. };
  18. export default connect(mapStateToProps, mapDispatchToProps)(NotificationStack);