From d7f803c782464c04e0ad79627833ff87e99e4520 Mon Sep 17 00:00:00 2001 From: Zias van Nes Date: Sat, 8 Nov 2025 13:12:16 +0100 Subject: [PATCH] fix:add NotificationManager and enable in layout --- src/lib/components/NotificationManager.svelte | 150 ++++++++++++++++++ src/routes/+layout.svelte | 4 +- 2 files changed, 153 insertions(+), 1 deletion(-) create mode 100644 src/lib/components/NotificationManager.svelte diff --git a/src/lib/components/NotificationManager.svelte b/src/lib/components/NotificationManager.svelte new file mode 100644 index 0000000..a44d77a --- /dev/null +++ b/src/lib/components/NotificationManager.svelte @@ -0,0 +1,150 @@ + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index fc0a232..12921ba 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -6,6 +6,7 @@ import { Toaster } from '$lib/components/sonner/index.js'; import { Skeleton } from '$lib/components/skeleton'; import LocationManager from '$lib/components/LocationManager.svelte'; + import NotificationManager from '$lib/components/NotificationManager.svelte'; import { onMount } from 'svelte'; import { browser } from '$app/environment'; @@ -42,9 +43,10 @@ - + {#if data?.user && !isLoginRoute} + {/if} {#if showHeader && data.user}