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}
- )}
+
);
}