aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
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
commit7da9395888dce466e11d2e798dd5e2b27b1b6912 (patch)
tree0d77bbe6e88de6119eb72dd416c237524dad1dd4 /src/components
parent14d48df0526977552d1ab347a8a6519e00384f11 (diff)
downloadcoinos-ui-7da9395888dce466e11d2e798dd5e2b27b1b6912.tar.gz
coinos-ui-7da9395888dce466e11d2e798dd5e2b27b1b6912.zip
hide nostr stuff
Diffstat (limited to 'src/components')
-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}