fix: profile highlighting
This commit is contained in:
1 parent
6ffd3ceb99
commit
aef676c8b5
2 files changed
+8
-10
No files matched your search
@@ -6,7 +6,12 @@
|
||||
|
||||
export let href: string | undefined = undefined
|
||||
export let icon: IconSource | undefined = undefined
|
||||
$: selected = href != undefined && $page.url.pathname == href
|
||||
export let selected = false
|
||||
$: {
|
||||
if (href != undefined) {
|
||||
selected = $page.url.pathname == href
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<Button
|
||||
|
||||
Reference in new issue
Block a user