diff options
| author | Fuwn <[email protected]> | 2026-01-22 22:26:53 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-01-22 22:26:53 -0800 |
| commit | dda52424a3e7a69a01bb745033185429c8d11941 (patch) | |
| tree | 4c64d6784f668cda38c2097060145c189e3165df /src/routes/+layout.svelte | |
| parent | format: Apply Prettier formatting (diff) | |
| download | due.moe-dda52424a3e7a69a01bb745033185429c8d11941.tar.xz due.moe-dda52424a3e7a69a01bb745033185429c8d11941.zip | |
fix(notifications): Replace svelte-notifications with custom store for Svelte 5
Diffstat (limited to 'src/routes/+layout.svelte')
| -rw-r--r-- | src/routes/+layout.svelte | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index d9caca74..4c6cf786 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -10,8 +10,7 @@ import '../app.css'; import { readable, type Readable } from 'svelte/store'; import { navigating } from '$app/stores'; - import Notifications from 'svelte-notifications'; - import * as EventNotification from '$lib/Notification/Notification.svelte'; + import NotificationsProvider from '$lib/Notification/NotificationsProvider.svelte'; import Root from '$lib/Home/Root.svelte'; import root from '$lib/Utility/root'; import { addMessages, init, locale as i18nLocale, locales } from 'svelte-i18n'; @@ -254,7 +253,7 @@ <p /> - <Notifications item={EventNotification} zIndex={5000}> + <NotificationsProvider zIndex={5000}> <Root {data} {way}> {#if $userIdentity.id !== -1} <slot /> @@ -267,7 +266,7 @@ <Skeleton grid={true} count={1} height="80vh" /> {/if} </Root> - </Notifications> + </NotificationsProvider> </div> {/if} |