Skip to content

Commit ae68ba7

Browse files
ralyodioqwencoder
andcommitted
fix: show crypto amount with USD in parens + copy button in payment modal
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
1 parent 2bf6002 commit ae68ba7

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

src/app/usage/usage-content.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,19 @@ export default function UsageContent() {
540540
<span className="text-white font-mono font-bold">${paymentStatus.amountUsd.toFixed(2)}</span>
541541
</div>
542542
{paymentStatus.amountCrypto && (
543-
<div className="flex justify-between text-sm">
543+
<div className="flex justify-between text-sm items-center">
544544
<span className="text-tc-text-dim">Send exactly</span>
545-
<span className="text-tc-green font-mono font-bold">{paymentStatus.amountCrypto} {paymentStatus.currency.split("_")[0].toUpperCase()}</span>
545+
<div className="flex items-center gap-2">
546+
<span className="text-tc-green font-mono font-bold">{paymentStatus.amountCrypto} {paymentStatus.currency.split("_")[0].toUpperCase()}</span>
547+
<span className="text-tc-text-dim font-mono text-xs">(${paymentStatus.amountUsd.toFixed(2)})</span>
548+
<button
549+
onClick={() => { navigator.clipboard.writeText(`${paymentStatus.amountCrypto}`); }}
550+
className="text-xs text-tc-text-dim hover:text-tc-green transition-colors"
551+
title="Click to copy"
552+
>
553+
📋
554+
</button>
555+
</div>
546556
</div>
547557
)}
548558
<div className="flex justify-between text-sm">

0 commit comments

Comments
 (0)