aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/AppHeader.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-26 22:35:28 -0800
committerAdam Soltys <[email protected]>2024-11-26 22:35:28 -0800
commit387bdd892d826ebf7cf21bdee57663bdf18c86f8 (patch)
tree9bb1b14519b34c343ad3bcd001fbd4681a53e447 /src/components/AppHeader.svelte
parent5d1ab731c73b730c8ed074402569bdecf29c44af (diff)
downloadcoinos-ui-387bdd892d826ebf7cf21bdee57663bdf18c86f8.tar.gz
coinos-ui-387bdd892d826ebf7cf21bdee57663bdf18c86f8.zip
warnings
Diffstat (limited to 'src/components/AppHeader.svelte')
-rw-r--r--src/components/AppHeader.svelte8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte
index 495e855b..39f97d4e 100644
--- a/src/components/AppHeader.svelte
+++ b/src/components/AppHeader.svelte
@@ -27,19 +27,23 @@
{
href: `/${user?.username}`,
icon: "ph:house-bold",
+ label: "Home",
},
{
href: `/${user?.username}/receive`,
icon: "ph:hand-coins-bold",
flip: "horizontal",
+ label: "Receive",
},
{
href: `/payments`,
icon: "ph:clock-bold",
+ label: "Payments",
},
{
href: `/send`,
icon: "ph:paper-plane-right-bold",
+ label: "Send",
},
];
@@ -59,8 +63,8 @@
>
<nav class="flex justify-end items-center space-x-4 p-5">
{#if user}
- {#each links as { href, icon, flip }}
- <a {href} data-sveltekit-preload-code="eager">
+ {#each links as { href, icon, flip, label }}
+ <a {href} data-sveltekit-preload-code="eager" aria-label={label}>
<button class="btn-menu {opacity(href)}">
<iconify-icon {icon} width={w > 640 ? 32 : 24} {flip}
></iconify-icon>