refactor(web): cleanup notification components (#8150)

* refactor(web): cleanup notification components

* use counter for ID
This commit is contained in:
Michel Heusschen
2024-03-21 14:44:54 +01:00
committed by GitHub
parent 382b63954c
commit 793049388b
5 changed files with 64 additions and 109 deletions

View File

@@ -11,9 +11,9 @@
{#if $notificationList.length > 0}
<section transition:fade={{ duration: 250 }} id="notification-list" class="fixed right-5 top-[80px] z-[99999999]">
{#each $notificationList as notificationInfo (notificationInfo.id)}
{#each $notificationList as notification (notification.id)}
<div animate:flip={{ duration: 250, easing: quintOut }}>
<NotificationCard {notificationInfo} />
<NotificationCard {notification} />
</div>
{/each}
</section>