web/Sidebar: dynamic about page link

This commit is contained in:
wukko 2024-09-04 21:23:07 +06:00
parent 520725462a
commit 201f9aaefe
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -16,8 +16,11 @@
let screenWidth: number;
let settingsLink = defaultNavPage("settings");
let aboutLink = defaultNavPage("about");
$: screenWidth, settingsLink = defaultNavPage("settings");
$: screenWidth,
settingsLink = defaultNavPage("settings"),
aboutLink = defaultNavPage("about");
</script>
<svelte:window bind:innerWidth={screenWidth} />
@ -43,7 +46,7 @@
<SidebarTab tabName="updates" tabLink="/updates">
<IconComet />
</SidebarTab>
<SidebarTab tabName="about" tabLink="/about">
<SidebarTab tabName="about" tabLink={aboutLink}>
<IconInfoCircle />
</SidebarTab>
</div>