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

Loading…
Cancel
Save