From 9c0c37151e123a5c442528d4a2709069ce067d2f Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Thu, 6 Nov 2025 11:10:07 -0500 Subject: [PATCH 1/2] fix: display tx prefix while showing transaction --- src/components/ui/text-with-copy-to-clipboard.tsx | 4 +++- src/components/upload/progress-card.tsx | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ui/text-with-copy-to-clipboard.tsx b/src/components/ui/text-with-copy-to-clipboard.tsx index 0f470e1..54cee1b 100644 --- a/src/components/ui/text-with-copy-to-clipboard.tsx +++ b/src/components/ui/text-with-copy-to-clipboard.tsx @@ -4,10 +4,11 @@ import { TextLink } from './link.tsx' type TextWithCopyToClipboardProps = { text: string + prefix?: string href?: string } -function TextWithCopyToClipboard({ text, href }: TextWithCopyToClipboardProps) { +function TextWithCopyToClipboard({ text, prefix, href }: TextWithCopyToClipboardProps) { const handleCopyToClipboard = async () => { try { await navigator.clipboard.writeText(text) @@ -20,6 +21,7 @@ function TextWithCopyToClipboard({ text, href }: TextWithCopyToClipboardProps) { return ( + {prefix && {prefix}} {href ? {text} : {text}}