mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-24 23:39:37 +02:00
migration to new backend
This commit is contained in:
parent
28a5d423c2
commit
9abe9fb315
309 changed files with 21476 additions and 24132 deletions
18
frontend/src/lib/components/Toast.svelte
Normal file
18
frontend/src/lib/components/Toast.svelte
Normal file
|
@ -0,0 +1,18 @@
|
|||
<script lang="ts">
|
||||
import { toasts } from '$lib/toasts';
|
||||
|
||||
let toastList: any[] = [];
|
||||
|
||||
toasts.subscribe((value) => {
|
||||
toastList = value;
|
||||
console.log(toastList);
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="toast toast-top toast-end z-50 min-w-20">
|
||||
{#each toastList as { type, message, id, duration }}
|
||||
<div class="alert alert-{type}">
|
||||
<span>{message}</span>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue