From 0b9d4422e274ee115dc7708917b7fdaa918da203 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 18 Jan 2026 19:27:22 +0000 Subject: [PATCH] feat: use RelayLink component in wallet info dropdown Replace plain text relay URL with RelayLink component in WalletViewer's info dropdown. This provides: - Clickable relay URLs that open relay detail window - Relay icon display (if available) - Insecure relay warnings (ws://) - Consistent styling with other relay displays Also removes unused ExternalLink import. --- src/components/WalletViewer.tsx | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/components/WalletViewer.tsx b/src/components/WalletViewer.tsx index 60c2064..091c201 100644 --- a/src/components/WalletViewer.tsx +++ b/src/components/WalletViewer.tsx @@ -19,7 +19,6 @@ import { ArrowDownLeft, LogOut, ChevronDown, - ExternalLink, } from "lucide-react"; import { Virtuoso } from "react-virtuoso"; import { useWallet } from "@/hooks/useWallet"; @@ -49,6 +48,7 @@ import { TooltipTrigger, } from "@/components/ui/tooltip"; import ConnectWalletDialog from "./ConnectWalletDialog"; +import { RelayLink } from "@/components/nostr/RelayLink"; interface Transaction { type: "incoming" | "outgoing"; @@ -825,21 +825,17 @@ export default function WalletViewer() { )} {state.nwcConnection?.relays && state.nwcConnection.relays.length > 0 && ( -
- Relay - - - {state.nwcConnection.relays[0] - .replace("wss://", "") - .replace("ws://", "")} - - - +
+ + Relay + +
)}