From 1d95cd1ba2972dd9eeb07442a199cf8c267183e6 Mon Sep 17 00:00:00 2001 From: pml68 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') 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] - } @@ -32,9 +28,12 @@

Just your average IT student

{#each socialsList as {link, iconIndex}} - + + {@html icons[iconIndex]} + {/each}
+
Check out my projects here
-- cgit v1.2.3