From 2b9539bf550fd3242ef7fa4215cb0b1beedde495 Mon Sep 17 00:00:00 2001 From: Adithya Vardhan Date: Wed, 17 Jun 2026 14:38:31 +0530 Subject: [PATCH] fix: make all transaction field rows copyable --- pages/Transaction.tsx | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/pages/Transaction.tsx b/pages/Transaction.tsx index 90f6688..cc45812 100644 --- a/pages/Transaction.tsx +++ b/pages/Transaction.tsx @@ -276,13 +276,11 @@ export function Transaction() { {transaction.state === "settled" && ( )} {metadata && ( @@ -290,7 +288,6 @@ export function Transaction() { title="Metadata" content={JSON.stringify(metadata, null, 2)} className="ios:text-sm android:text-xs font-mono bg-muted p-2 rounded-md" - copy /> )} @@ -304,32 +301,25 @@ export function Transaction() { function TransactionDetailRow(props: { title: string; content: string; - copy?: boolean; className?: string; }) { return ( {props.title} - {props.copy ? ( - { - Clipboard.setStringAsync(props.content); - Toast.show({ - type: "success", - text1: "Copied to clipboard", - }); - }} - > - - {props.content} - - - ) : ( + { + Clipboard.setStringAsync(props.content); + Toast.show({ + type: "success", + text1: "Copied to clipboard", + }); + }} + > {props.content} - )} + ); }