From d1ac257ff9b96ed6f615808fb297f0931509c86b Mon Sep 17 00:00:00 2001 From: codytseng Date: Sun, 31 Aug 2025 01:02:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=92=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/secondary/NotePage/index.tsx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/pages/secondary/NotePage/index.tsx b/src/pages/secondary/NotePage/index.tsx index 979104d..0515861 100644 --- a/src/pages/secondary/NotePage/index.tsx +++ b/src/pages/secondary/NotePage/index.tsx @@ -71,19 +71,23 @@ const NotePage = forwardRef(({ id, index }: { id?: string; index?: number }, ref
{rootITag && } - {rootEventId !== parentEventId && ( + {rootEventId && rootEventId !== parentEventId && ( )} - + {parentEventId && ( + + )} ) } - if (!event) return null return (
@@ -152,8 +157,7 @@ function ParentNote({ event && 'hover:text-foreground' )} onClick={() => { - if (!event) return - push(toNote(event)) + push(toNote(event ?? eventBech32Id)) }} > {event && }