diff options
Diffstat (limited to 'src/components/InvoiceTypes.svelte')
| -rw-r--r-- | src/components/InvoiceTypes.svelte | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/components/InvoiceTypes.svelte b/src/components/InvoiceTypes.svelte index 25eeed94..872dd1ed 100644 --- a/src/components/InvoiceTypes.svelte +++ b/src/components/InvoiceTypes.svelte @@ -1,4 +1,5 @@ <script> + import { goto } from "$app/navigation"; let { aid, invoice, user, type, types, t, setType } = $props(); </script> @@ -52,6 +53,26 @@ <img src="/images/liquid.svg" class="w-8" alt="Liquid" /> <div class="my-auto text-lg">Liquid</div> </button> + + <button + class="btn flex-nowrap" + class:bg-base-300={type === types.liquid} + class:text-secondary={type === types.liquid} + onclick={() => goto("/scan")} + > + <iconify-icon icon="ph:camera-bold" width="32"></iconify-icon> + <div class="my-auto text-lg">{t("user.send.scan")}</div> + </button> + + <button + class="btn flex-nowrap" + class:bg-base-300={type === types.bitcoin} + class:text-secondary={type === types.bitcoin} + onclick={() => goto("/receive")} + > + <iconify-icon icon="ph:clipboard-text-bold" width="32"></iconify-icon> + <div class="my-auto text-lg">{t("user.send.paste")}</div> + </button> </div> {#if type === types.liquid} |
