misc: add ref to /accounts for login buttons

This commit is contained in:
Xylight committed 2024-09-22 14:47:04 -07:00
1 parent d567e7e45e
commit 7c7df02e3d
5 files changed
+55 -8

No files matched your search

@@ -0,0 +1,18 @@
<script lang="ts">
import { Button } from 'mono-svelte'
import LoginPage from '../../../login/guest/+page.svelte'
import { ArrowLeft, Icon } from 'svelte-hero-icons'
import { t } from '$lib/translations'
</script>
<LoginPage ref="/accounts">
<Button
size="custom"
color="none"
class="w-max hover:underline text-slate-600 dark:text-zinc-400"
on:click={() => history?.back()}
>
<Icon src={ArrowLeft} size="16" micro />
{$t('account.accounts')}
</Button>
</LoginPage>