update shortener card total visits button to use href

pull/3/head
TZGyn 2 years ago
parent e253e783d3
commit a3d41dceba
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -21,7 +21,7 @@
Check,
ChevronsUpDown,
} from 'lucide-svelte'
import { goto, invalidateAll } from '$app/navigation'
import { invalidateAll } from '$app/navigation'
import { cn } from '$lib/utils'
import Qr from '$lib/components/QR.svelte'
import AddShortenerDialog from './(component)/AddShortenerDialog.svelte'
@ -180,8 +180,8 @@
<div class="flex items-center justify-between">
<div class="flex gap-2">
<Button
class="flex h-8 items-center justify-center gap-1 rounded bg-secondary text-sm"
on:click={() => goto(`/links/${shortener.code}`)}>
href={`/links/${shortener.code}`}
class="flex h-8 items-center justify-center gap-1 rounded bg-secondary text-sm">
<BarChart size={20} />
<div>
{shortener.visitor.length} visits

Loading…
Cancel
Save