aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/InvoiceData.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-01-26 07:51:47 -0800
committerAdam Soltys <[email protected]>2025-01-26 07:51:47 -0800
commit38bcc3e6d10f203213eb5bc014f35e3736acf7a1 (patch)
tree0d77bbe6e88de6119eb72dd416c237524dad1dd4 /src/components/InvoiceData.svelte
parent2d896f2fce81b51d9d8c117140ae5d14361f5814 (diff)
downloadcoinos-ui-38bcc3e6d10f203213eb5bc014f35e3736acf7a1.tar.gz
coinos-ui-38bcc3e6d10f203213eb5bc014f35e3736acf7a1.zip
hide nostr stuff
Diffstat (limited to 'src/components/InvoiceData.svelte')
-rw-r--r--src/components/InvoiceData.svelte16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/components/InvoiceData.svelte b/src/components/InvoiceData.svelte
index 764e0327..8edc9257 100644
--- a/src/components/InvoiceData.svelte
+++ b/src/components/InvoiceData.svelte
@@ -1,7 +1,7 @@
<script>
import Amount from "$comp/Amount.svelte";
- import { btc, f, sat, s, sats, types } from "$lib/utils";
+ import { btc, copy, f, sat, s, sats, types } from "$lib/utils";
let {
showQr,
link,
@@ -37,7 +37,11 @@
{#if invoice.type === types.liquid}
<div class="flex justify-center p-4 shadow items-center gap-2">
- <iconify-icon noobserver icon="ph:warning-bold" width="48" class="text-warning"
+ <iconify-icon
+ noobserver
+ icon="ph:warning-bold"
+ width="48"
+ class="text-warning"
></iconify-icon>
<div>
<div class="my-auto text-xl text-center text-secondary">
@@ -50,8 +54,14 @@
{/if}
{#if !showQr || txt.length <= 120}
- <div class="break-all text-center text-secondary text-xl">
+ <div
+ class="break-all text-center text-secondary text-xl flex gap-1 items-center justify-center"
+ >
{txt}
+
+ <button onclick={() => copy(txt)}>
+ <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon>
+ </button>
</div>
{/if}