diff options
| author | Adam Soltys <[email protected]> | 2025-11-26 21:44:55 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 15:33:08 -0800 |
| commit | 3aab57df2063d913bd16b953187ced242421f66a (patch) | |
| tree | 9f8fcb8d266e00e1112af106d1480e9fc08e8b04 /src/components/InvoiceActions.svelte | |
| parent | 68e7fe9655f94efc573f3aab7acf60d03c4162a0 (diff) | |
| download | coinos-ui-3aab57df2063d913bd16b953187ced242421f66a.tar.gz coinos-ui-3aab57df2063d913bd16b953187ced242421f66a.zip | |
ark stuff
Diffstat (limited to 'src/components/InvoiceActions.svelte')
| -rw-r--r-- | src/components/InvoiceActions.svelte | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/src/components/InvoiceActions.svelte b/src/components/InvoiceActions.svelte index 08f9920d..b6005217 100644 --- a/src/components/InvoiceActions.svelte +++ b/src/components/InvoiceActions.svelte @@ -19,7 +19,7 @@ toggleMemo, } = $props(); - let { aid, address_type, type } = $derived(invoice); + let { aid, account, address_type, type } = $derived(invoice); </script> <div class="text-secondary space-y-2 text-xl pt-2"> @@ -133,7 +133,9 @@ </div> <div class="my-auto text-lg">Lightning</div> </button> - {:else} + {/if} + + {#if account?.type === types.ark} <button class="btn flex-nowrap !w-auto grow" class:bg-base-300={type === types.ark} @@ -148,22 +150,26 @@ class="bg-black rounded-full w-8 h-8 items-center justify-center flex" > <div class="m-auto"> - <img src="/images/ark.png" class="w-8 h-8 rounded-full object-cover" alt="Bitcoin" /> + <img + src="/images/ark.png" + class="w-8 h-8 rounded-full object-cover" + alt="Bitcoin" + /> </div> </div> <div class="my-auto text-lg">Ark</div> </button> + {:else} + <button + class="btn flex-nowrap !w-auto grow" + class:bg-base-300={type === types.bitcoin} + class:text-secondary={type === types.bitcoin} + onclick={() => setType(types.bitcoin)} + > + <img src="/images/bitcoin.svg" class="w-8" alt="Bitcoin" /> + <div class="my-auto text-lg">Bitcoin</div> + </button> {/if} - - <button - class="btn flex-nowrap !w-auto grow" - class:bg-base-300={type === types.bitcoin} - class:text-secondary={type === types.bitcoin} - onclick={() => setType(types.bitcoin)} - > - <img src="/images/bitcoin.svg" class="w-8" alt="Bitcoin" /> - <div class="my-auto text-lg">Bitcoin</div> - </button> </div> {#if aid === user.id} |
