From 2ce83ef88a6b8a5d60f73cb5bb71701e2f451740 Mon Sep 17 00:00:00 2001 From: Gigi Date: Tue, 14 Oct 2025 15:42:54 +0200 Subject: [PATCH] fix: use React.ReactElement instead of JSX.Element type Change return type from JSX.Element to React.ReactElement to fix ESLint no-undef error --- src/components/HighlightItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HighlightItem.tsx b/src/components/HighlightItem.tsx index c413dd57..8c638aae 100644 --- a/src/components/HighlightItem.tsx +++ b/src/components/HighlightItem.tsx @@ -30,7 +30,7 @@ const isImageUrl = (url: string): boolean => { } // Helper to render a nostr identifier -const renderNostrId = (nostrUri: string, index: number): JSX.Element => { +const renderNostrId = (nostrUri: string, index: number): React.ReactElement => { try { // Remove nostr: prefix const identifier = nostrUri.replace(/^nostr:/, '')