From 1d95cd1ba2972dd9eeb07442a199cf8c267183e6 Mon Sep 17 00:00:00 2001
From: pml68 <tutorialmester@gmail.com>
Date: Wed, 28 Feb 2024 20:04:00 +0100
Subject: refactor: remove unnecessary warning about the a tag not having a
 child element

---
 src/routes/+page.svelte | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'src/routes/+page.svelte')

diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 76d7348..83f505b 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -17,10 +17,6 @@
   }
 
   const socialsList: Social[] = socials
-
-  const insertIcon: Function = (element: HTMLElement, iconIndex: string) => {
-    element.innerHTML = icons[iconIndex]
-  }
 </script>
 
 <svelte:head>
@@ -32,9 +28,12 @@
   <p>Just your average IT student</p>
   <div class="socials">
     {#each socialsList as {link, iconIndex}}
-      <a use:insertIcon={iconIndex} href={link} target="_blank" class="icon"></a>
+      <a href={link} target="_blank" class="icon">
+        {@html icons[iconIndex]}
+      </a>
     {/each}
   </div>
+  <br>
   <div class="projects">
     Check out my projects <a href={base + '/projects'}><b>here</b></a>
   </div>
-- 
cgit v1.2.3

