diff options
| author | Adam Soltys <[email protected]> | 2024-12-06 13:56:26 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-12-06 13:56:26 -0800 |
| commit | 7dc1358f9e87ad6fc9278f55250da8545f35ffab (patch) | |
| tree | 11f8da0509ebfccb5239af15123dc3fbf2c648b7 /src/components/InvoiceTypes.svelte | |
| parent | 774c8254d2e6560e52fcb69cd9a70a9ac8b26582 (diff) | |
| download | coinos-ui-7dc1358f9e87ad6fc9278f55250da8545f35ffab.tar.gz coinos-ui-7dc1358f9e87ad6fc9278f55250da8545f35ffab.zip | |
paste/scan buttons on receive
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} |
