web/Sidebar: dynamic about page link
This commit is contained in:
parent
520725462a
commit
201f9aaefe
1 changed files with 5 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue