fix: use React.ReactElement instead of JSX.Element type

Change return type from JSX.Element to React.ReactElement to fix ESLint no-undef error
This commit is contained in:
Gigi
2025-10-14 15:42:54 +02:00
parent dab3412ecd
commit 2ce83ef88a

View File

@@ -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:/, '')