feat: add active match link in dashboard; display when user has an active match

This commit is contained in:
2026-03-01 19:06:09 +01:00
parent 07af8d7bfc
commit 3ac16be68f
2 changed files with 12 additions and 0 deletions

View File

@@ -225,6 +225,13 @@
Leave Queue
</button>
</div>
{:else if data.hasActiveMatch}
<a
href="/matches/{data.activeMatchId}"
class="rounded-md border border-accent/40 px-4 py-2 text-sm font-600 text-accent transition-colors hover:bg-accent/10"
>
View Active Match →
</a>
{:else}
<button
onclick={joinQueue}