From 998b63a35256ac985a5a2714dd1ca451af4dfd8a Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Wed, 9 Oct 2024 00:41:20 -0700
Subject: chore(prettier): use spaces instead of tabs

---
 src/lib/Image/FallbackImage.svelte | 56 +++++++++++++++++++-------------------
 1 file changed, 28 insertions(+), 28 deletions(-)

(limited to 'src/lib/Image/FallbackImage.svelte')

diff --git a/src/lib/Image/FallbackImage.svelte b/src/lib/Image/FallbackImage.svelte
index 3f5e8758..2029cf0e 100644
--- a/src/lib/Image/FallbackImage.svelte
+++ b/src/lib/Image/FallbackImage.svelte
@@ -1,41 +1,41 @@
 <script lang="ts">
-	export let source: string | undefined | null;
-	export let alternative: string | undefined | null;
-	export let fallback: string | undefined | null;
-	export let maxReplaceCount = 1;
-	export let replaceDelay = 1000;
-	export let error = 'https://i2.kym-cdn.com/photos/images/newsfeed/000/290/992/0aa.jpg';
-	export let hideOnError = false;
-	export let style = '';
+  export let source: string | undefined | null;
+  export let alternative: string | undefined | null;
+  export let fallback: string | undefined | null;
+  export let maxReplaceCount = 1;
+  export let replaceDelay = 1000;
+  export let error = 'https://i2.kym-cdn.com/photos/images/newsfeed/000/290/992/0aa.jpg';
+  export let hideOnError = false;
+  export let style = '';
 
-	let replaceCount = 0;
+  let replaceCount = 0;
 
-	const delayedReplace = (event: Event, image: string | undefined | null) => {
-		if (replaceCount >= maxReplaceCount) return;
+  const delayedReplace = (event: Event, image: string | undefined | null) => {
+    if (replaceCount >= maxReplaceCount) return;
 
-		setTimeout(() => {
-			(event.target as HTMLImageElement).src = image || '';
+    setTimeout(() => {
+      (event.target as HTMLImageElement).src = image || '';
 
-			replaceCount += 1;
-		}, replaceDelay);
-	};
+      replaceCount += 1;
+    }, replaceDelay);
+  };
 </script>
 
 {#if replaceCount < maxReplaceCount}
-	<img
-		src={source}
-		alt={alternative}
-		loading="lazy"
-		class="badge"
-		on:error={(e) => delayedReplace(e, fallback)}
-		{style}
-	/>
+  <img
+    src={source}
+    alt={alternative}
+    loading="lazy"
+    class="badge"
+    on:error={(e) => delayedReplace(e, fallback)}
+    {style}
+  />
 {:else if !hideOnError}
-	<img src={error} alt="Not found" loading="lazy" class="badge" />
+  <img src={error} alt="Not found" loading="lazy" class="badge" />
 {/if}
 
 <style>
-	.badge {
-		border-radius: 8px;
-	}
+  .badge {
+    border-radius: 8px;
+  }
 </style>
-- 
cgit v1.2.3

