From 75febc128562ffbe937a3a53baf64e4c46ad54cb Mon Sep 17 00:00:00 2001
From: mr0x50 <24775431+mroxso@users.noreply.github.com>
Date: Sun, 19 Jan 2025 17:59:24 +0100
Subject: [PATCH] use nextjs Link component instead of javascript for the
ViewNoteButton component
---
lumina/components/ViewNoteButton.tsx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lumina/components/ViewNoteButton.tsx b/lumina/components/ViewNoteButton.tsx
index 8d34173..0350c6a 100644
--- a/lumina/components/ViewNoteButton.tsx
+++ b/lumina/components/ViewNoteButton.tsx
@@ -1,10 +1,13 @@
import { Button } from "@/components/ui/button";
import { SizeIcon } from "@radix-ui/react-icons";
+import Link from "next/link";
import { nip19 } from "nostr-tools";
export default function ViewNoteButton({ event }: { event: any }) {
const encodedNoteId = nip19.noteEncode(event.id);
return (
-
+
+
+
);
}
\ No newline at end of file