From 998b63a35256ac985a5a2714dd1ca451af4dfd8a Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 9 Oct 2024 00:41:20 -0700 Subject: chore(prettier): use spaces instead of tabs --- src/lib/Notification/Notification.svelte | 166 +++++++++++++++---------------- src/lib/Notification/options.ts | 24 ++--- 2 files changed, 95 insertions(+), 95 deletions(-) (limited to 'src/lib/Notification') diff --git a/src/lib/Notification/Notification.svelte b/src/lib/Notification/Notification.svelte index 87f51c76..6764f46e 100644 --- a/src/lib/Notification/Notification.svelte +++ b/src/lib/Notification/Notification.svelte @@ -1,102 +1,102 @@ {#if !$settings.displayDisableNotifications} -
{ - return; - }} - role="button" - tabindex="0" - > - {#if notification.description} - -
event.preventDefault()} - on:keydown={() => { - return; - }} - > - {@html notification.heading} +
{ + return; + }} + role="button" + tabindex="0" + > + {#if notification.description} + +
event.preventDefault()} + on:keydown={() => { + return; + }} + > + {@html notification.heading} - {@html notification.description} -
- {:else} -
- {@html notification.heading} -
- {/if} -
+ {@html notification.description} +
+ {:else} +
+ {@html notification.heading} +
+ {/if} +
{/if} diff --git a/src/lib/Notification/options.ts b/src/lib/Notification/options.ts index a9896540..3ccb20b9 100644 --- a/src/lib/Notification/options.ts +++ b/src/lib/Notification/options.ts @@ -1,19 +1,19 @@ type Position = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'; export interface Options { - heading: string | number; - description: string | number | undefined; - position: Position; - duration: number; - id: string; + heading: string | number; + description: string | number | undefined; + position: Position; + duration: number; + id: string; } export const options = (preferences: { [key: string]: number | string }): Options => { - return { - position: (preferences.position || 'top-right') as Position, - duration: Number(preferences.duration || 3000), - heading: preferences.heading || 'Notification', - description: preferences.description || undefined, - id: Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15) - }; + return { + position: (preferences.position || 'top-right') as Position, + duration: Number(preferences.duration || 3000), + heading: preferences.heading || 'Notification', + description: preferences.description || undefined, + id: Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15) + }; }; -- cgit v1.2.3