feat: add community header back on press

This commit is contained in:
James Xylight committed 2025-02-16 21:02:45 -08:00
1 parent 9a01df0d36
commit 2edc48b44c
6 files changed
+46 -20

No files matched your search

@@ -22,7 +22,7 @@
color="tertiary"
alignment="left"
loading={switching}
loaderWidth={20}
loaderWidth={22}
selected={profile.data?.id == prof.id}
onclick={async () => {
switching = true
@@ -1,11 +1,7 @@
<script lang="ts">
import { run } from 'svelte/legacy'
import { page } from '$app/state'
import { settings } from '$lib/settings.svelte.js'
import { Button } from 'mono-svelte'
import { Icon, type IconSource } from 'svelte-hero-icons'
import type { HTMLButtonAttributes } from 'svelte/elements'
interface Props {
href?: string | undefined
@@ -29,7 +25,7 @@
...rest
}: Props = $props()
run(() => {
$effect(() => {
if (href != undefined) {
selected = page.url.pathname == href
}