Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Fix navbar errors from new SvelteKit version (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanbartow authored Jan 17, 2022
1 parent 4193261 commit 4cae537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/ui/Navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
export let title: string = '';
export let routes: Route[] = [];
let open = false;
$: currentPage = routes.find((r) => r.path === $page.path);
$: currentPage = routes.find((r) => r.path === $page.url.pathname);
</script>

<div class="z-50 h-full shadow drawer drawer-mobile">
Expand Down Expand Up @@ -77,7 +77,7 @@
}}
sveltekit:prefetch
href={route.path}
class="rounded-btn {route.path === $page.path ? 'bg-base-300' : ''}"
class="rounded-btn {route.path === $page.url.pathname ? 'bg-base-300' : ''}"
>
{route.title}
</a>
Expand Down

0 comments on commit 4cae537

Please sign in to comment.