Use live_toast instead of built-in flash

Precursor for building better notifications
This commit is contained in:
Claudio Ortolina
2025-06-07 08:27:25 +01:00
parent a005a3c203
commit 0aa0a19a00
10 changed files with 19 additions and 147 deletions
@@ -1,6 +1,11 @@
<main class="px-4 py-8 max-sm:pb-20 sm:px-6 lg:px-8">
<div class="mx-auto max-w-5xl">
<.flash_group flash={@flash} />
<LiveToast.toast_group
flash={@flash}
corner={:top_right}
connected={assigns[:socket] != nil}
toasts_sync={assigns[:toasts_sync]}
/>
{@inner_content}
</div>
</main>