The code powering m.abunchtell.com https://m.abunchtell.com
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

22 рядки
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);