notification color is wrong (#540)

This commit is contained in:
ABevier 2023-05-01 15:27:06 -04:00 committed by GitHub
parent ff8194f715
commit a7e9e86da4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,11 +13,9 @@
[NotificationType.ERROR]: "error-notification", [NotificationType.ERROR]: "error-notification",
[NotificationType.ACTION_BANNER]: "action-banner-notification" [NotificationType.ACTION_BANNER]: "action-banner-notification"
}; };
const notificationClass = styles[notification.type];
</script> </script>
<div class="flex w-full items-center justify-between px-4 py-2 {notificationClass}"> <div class="flex w-full items-center justify-between px-4 py-2 {styles[notification.type]}">
<div>{notification.message}</div> <div>{notification.message}</div>
<div class="flex items-center gap-4"> <div class="flex items-center gap-4">
{#if notification.callback} {#if notification.callback}