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 screenWidth: number;
|
||||||
let settingsLink = defaultNavPage("settings");
|
let settingsLink = defaultNavPage("settings");
|
||||||
|
let aboutLink = defaultNavPage("about");
|
||||||
|
|
||||||
$: screenWidth, settingsLink = defaultNavPage("settings");
|
$: screenWidth,
|
||||||
|
settingsLink = defaultNavPage("settings"),
|
||||||
|
aboutLink = defaultNavPage("about");
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:window bind:innerWidth={screenWidth} />
|
<svelte:window bind:innerWidth={screenWidth} />
|
||||||
|
@ -43,7 +46,7 @@
|
||||||
<SidebarTab tabName="updates" tabLink="/updates">
|
<SidebarTab tabName="updates" tabLink="/updates">
|
||||||
<IconComet />
|
<IconComet />
|
||||||
</SidebarTab>
|
</SidebarTab>
|
||||||
<SidebarTab tabName="about" tabLink="/about">
|
<SidebarTab tabName="about" tabLink={aboutLink}>
|
||||||
<IconInfoCircle />
|
<IconInfoCircle />
|
||||||
</SidebarTab>
|
</SidebarTab>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue