diff options
| author | Fuwn <[email protected]> | 2026-03-01 16:04:11 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-03-01 16:04:11 -0800 |
| commit | 48f0c30d47d62e4f35706edb93a1bb2f97eba14c (patch) | |
| tree | 44866d7a61adfdf01a780e0108c370294d3db78b /src/lib/Notification | |
| parent | chore(biome): re-enable useAltText rule (diff) | |
| download | due.moe-48f0c30d47d62e4f35706edb93a1bb2f97eba14c.tar.xz due.moe-48f0c30d47d62e4f35706edb93a1bb2f97eba14c.zip | |
chore(biome): enable svelte formatting
Diffstat (limited to 'src/lib/Notification')
| -rw-r--r-- | src/lib/Notification/Notification.svelte | 26 | ||||
| -rw-r--r-- | src/lib/Notification/NotificationsProvider.svelte | 12 |
2 files changed, 19 insertions, 19 deletions
diff --git a/src/lib/Notification/Notification.svelte b/src/lib/Notification/Notification.svelte index 864d6568..4e6fd2e7 100644 --- a/src/lib/Notification/Notification.svelte +++ b/src/lib/Notification/Notification.svelte @@ -1,21 +1,21 @@ <script lang="ts"> - import settings from '$stores/settings'; - import { onMount } from 'svelte'; - import type { Notification } from './store'; +import settings from '$stores/settings'; +import { onMount } from 'svelte'; +import type { Notification } from './store'; - export let notification: Notification; - export let onRemove: () => void = () => { - return; - }; - export let removed = false; +export let notification: Notification; +export let onRemove: () => void = () => { + return; +}; +export let removed = false; - onMount(() => setTimeout(remove, notification.duration)); +onMount(() => setTimeout(remove, notification.duration)); - const remove = () => { - removed = true; +const remove = () => { + removed = true; - setTimeout(onRemove, 150); - }; + setTimeout(onRemove, 150); +}; </script> {#if !$settings.displayDisableNotifications} diff --git a/src/lib/Notification/NotificationsProvider.svelte b/src/lib/Notification/NotificationsProvider.svelte index 964317e9..15e5f2b2 100644 --- a/src/lib/Notification/NotificationsProvider.svelte +++ b/src/lib/Notification/NotificationsProvider.svelte @@ -1,12 +1,12 @@ <script lang="ts"> - import { notifications } from './store'; - import EventNotification from './Notification.svelte'; +import { notifications } from './store'; +import EventNotification from './Notification.svelte'; - export let zIndex = 5000; +export let zIndex = 5000; - const handleRemove = (id: string) => { - notifications.remove(id); - }; +const handleRemove = (id: string) => { + notifications.remove(id); +}; </script> <div class="notifications-container" style="z-index: {zIndex};"> |