function showErrorNotification()

in web/src/components/layout/notifications/notifications.logic.ts [30:42]


  function showErrorNotification({ header, content }: NotificationContents): void {
    const id = generateGuid();

    setNotifications((oldNotifications) => [{
      header,
      type: 'error',
      content,
      dismissible: true,
      dismissLabel: i18n.dismissLabel,
      id,
      onDismiss: () => removeNotification(id),
    }, ...oldNotifications]);
  }