Перевёл NavBar на Svelte Runes (это каким-то образом починило кнопки?)
This commit is contained in:
parent
40975d219a
commit
5822e64c84
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
import HoverIcon from '$lib/components/HoverIcon.svelte';
|
import HoverIcon from '$lib/components/HoverIcon.svelte';
|
||||||
import { page } from '$app/state';
|
import { page } from '$app/state';
|
||||||
|
|
||||||
export let routes: App.Route[];
|
let { routes }: { routes: App.Route[] } = $props();
|
||||||
|
|
||||||
function isActive(route: string): boolean {
|
function isActive(route: string): boolean {
|
||||||
if (route === '/') return page.url.pathname === route;
|
if (route === '/') return page.url.pathname === route;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue