cleanup + fixes

This commit is contained in:
Andras Bacsai
2022-10-26 11:21:55 +02:00
parent 71496d5229
commit 1225786fc0
21 changed files with 49 additions and 1564 deletions

View File

@@ -4,11 +4,11 @@
import { dismissToast, pauseToast, resumeToast, toasts } from '$lib/store';
</script>
{#if $toasts}
{#if $toasts.length > 0}
<section>
<article class="toast toast-top toast-end rounded-none px-10" role="alert" >
<article class="toast toast-top toast-end rounded-none px-10" role="alert">
{#each $toasts as toast (toast.id)}
<Toast
<Toast
type={toast.type}
on:resume={() => resumeToast(toast.id)}
on:pause={() => pauseToast(toast.id)}