aboutsummaryrefslogtreecommitdiff
path: root/packages/web-util/src/components/NotificationBanner.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/web-util/src/components/NotificationBanner.tsx')
-rw-r--r--packages/web-util/src/components/NotificationBanner.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/web-util/src/components/NotificationBanner.tsx b/packages/web-util/src/components/NotificationBanner.tsx
index 62733ab3c..31d5a5d01 100644
--- a/packages/web-util/src/components/NotificationBanner.tsx
+++ b/packages/web-util/src/components/NotificationBanner.tsx
@@ -9,7 +9,7 @@ export function LocalNotificationBanner({ notification, showDebug }: { notificat
return <div class="relative">
<div class="fixed top-0 left-0 right-0 z-20 w-full p-4">
<Attention type="danger" title={notification.message.title} onClose={() => {
- notification.remove()
+ notification.acknowledge()
}}>
{notification.message.description &&
<div class="mt-2 text-sm text-red-700">
@@ -26,7 +26,7 @@ export function LocalNotificationBanner({ notification, showDebug }: { notificat
return <div class="relative">
<div class="fixed top-0 left-0 right-0 z-20 w-full p-4">
<Attention type="success" title={notification.message.title} onClose={() => {
- notification.remove();
+ notification.acknowledge();
}} /></div></div>
}
}