aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Notification/Notification.svelte
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-03-01 16:04:11 -0800
committerFuwn <[email protected]>2026-03-01 16:04:11 -0800
commit48f0c30d47d62e4f35706edb93a1bb2f97eba14c (patch)
tree44866d7a61adfdf01a780e0108c370294d3db78b /src/lib/Notification/Notification.svelte
parentchore(biome): re-enable useAltText rule (diff)
downloaddue.moe-48f0c30d47d62e4f35706edb93a1bb2f97eba14c.tar.xz
due.moe-48f0c30d47d62e4f35706edb93a1bb2f97eba14c.zip
chore(biome): enable svelte formatting
Diffstat (limited to 'src/lib/Notification/Notification.svelte')
-rw-r--r--src/lib/Notification/Notification.svelte26
1 files changed, 13 insertions, 13 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}