aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/AppHeader.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/AppHeader.svelte')
-rw-r--r--src/components/AppHeader.svelte7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte
index 5f99cdc3..586332e6 100644
--- a/src/components/AppHeader.svelte
+++ b/src/components/AppHeader.svelte
@@ -1,4 +1,5 @@
<script lang="ts">
+ import PhHouseBold from "virtual:icons/ph/house-bold";
import { banner, theme, newPayment } from "$lib/store";
import { goto } from "$app/navigation";
import Avatar from "$comp/Avatar.svelte";
@@ -28,7 +29,7 @@
? [
{
href: `/${user?.username}`,
- icon: "ph:house-bold",
+ icon: PhHouseBold,
label: "Home",
},
]
@@ -75,10 +76,10 @@
>
<nav class="flex justify-end items-center space-x-4 p-5">
{#if user}
- {#each links as { href, icon, label }}
+ {#each links as { href, icon: Icon, label }}
<a {href} data-sveltekit-preload-code="eager" aria-label={label}>
<button class="flex justify-center items-center bg-base-100 p-2 rounded-full w-12 h-12 sm:w-16 sm:h-16 drop-shadow-xl {opacity(href)}" aria-label={label}>
- <iconify-icon noobserver {icon} width={(w ?? 0) > 640 ? 32 : 24}></iconify-icon>
+ <Icon width={(w ?? 0) > 640 ? 32 : 24} />
</button>
</a>
{/each}