How to use the react-toast-notifications.withToastManager function in react-toast-notifications

To help you get started, we’ve selected a few react-toast-notifications examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github keystonejs / keystone / packages / app-admin-ui / client / components / ConnectivityListener.js View on Github external
// add the applicable toast
    toastManager.add(
      content,
      {
        appearance: 'info',
        autoDismiss: isOnline,
      },
      callback
    );
  }
  render() {
    return null;
  }
}

export default withToastManager(ConnectivityListener);

react-toast-notifications

A configurable, composable, toast notification system for react.

MIT
Latest version published 3 years ago

Package Health Score

56 / 100
Full package analysis