mirror of
https://github.com/dergigi/boris.git
synced 2025-12-25 10:34:28 +01:00
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:
@@ -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:/, '')
|
||||
|
||||
Reference in New Issue
Block a user