From cb475495fb45f1030d0ebee3e33345d261b99b53 Mon Sep 17 00:00:00 2001
From: highperfocused
Date: Mon, 21 Apr 2025 13:30:17 +0200
Subject: [PATCH] feat: add QR code link for direct payment and improve invoice
display logic
---
components/ZapButton.tsx | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/components/ZapButton.tsx b/components/ZapButton.tsx
index 432644a..a26a9b1 100644
--- a/components/ZapButton.tsx
+++ b/components/ZapButton.tsx
@@ -18,6 +18,7 @@ import { Input } from "./ui/input";
import { useNostr, useNostrEvents, useProfile } from "nostr-react";
import { useEffect, useState, useRef } from "react";
import QRCode from "react-qr-code";
+import Link from "next/link";
export default function ZapButton({ event }: { event: any }) {
@@ -300,7 +301,9 @@ export default function ZapButton({ event }: { event: any }) {
) : (
-
+
+
+
)}
@@ -310,15 +313,16 @@ export default function ZapButton({ event }: { event: any }) {
: "Scan this QR code with a Lightning wallet to pay the invoice"}