Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
Merge pull request #38 from SvelteShipSolutions/fix/navbar-auth
Browse files Browse the repository at this point in the history
fix: add `on:click` event to the `NavBar` authentication
  • Loading branch information
GolimarGit authored Nov 27, 2024
2 parents e5aae93 + 3b7bdfb commit a086dba
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/lib/components/NavBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
flex="flex-1 lg:flex-none justify-center"
rounded=""
border=""
class="bg-surface-100-800-token hidden h-full md:block ">
class="bg-surface-100-800-token hidden h-full md:block">
{#each links as link (link.name)}
<TabAnchor href={link.href} selected={$page.url.pathname === link.href}>
<svelte:fragment slot="lead"
><div class="flex justify-center">
<TabAnchor
on:click={() => (window.location.href = link.href)}
selected={$page.url.pathname === link.href}>
<svelte:fragment slot="lead">
<div class="flex justify-center">
<svelte:component this={link.icon} />
</div></svelte:fragment>
</div>
</svelte:fragment>
<span>{link.name}</span>
</TabAnchor>
{/each}
Expand Down

0 comments on commit a086dba

Please sign in to comment.