Use button instead of link

This commit is contained in:
ernstmul committed 2024-12-19 10:39:28 +01:00
1 parent d9a8472651
commit 65d477f659
1 file changed
+8 -3
@@ -11,6 +11,8 @@
import { Submit, trackError, trackEvent } from '$lib/actions/analytics';
import { Pill } from '$lib/elements';
import { base } from '$app/paths';
import { wizard } from '$lib/stores/wizard';
import { redirect } from '@sveltejs/kit';
export let show = false;
let addresses: AddressesList;
@@ -188,9 +190,12 @@
</FormList>
{:else}
<Alert
>There are no billing addresses linked to your account, please <a
href={`${base}/account/payments`}
class="link">add one</a> first</Alert>
buttons={[
{
slot: 'Add address',
href: `${base}/account/payments`
}
]}>There are no billing addresses linked to your account.</Alert>
{/if}
<svelte:fragment slot="footer">
<Button text on:click={() => (show = false)}>Cancel</Button>