fix: resolve display issue of embedded kind 20 events
This commit is contained in:
parent
af9b97f60c
commit
d1b7f140fd
4 changed files with 9 additions and 8 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import client from '@/services/client.service'
|
||||
import { Event, kinds, verifyEvent } from 'nostr-tools'
|
||||
import { useMemo } from 'react'
|
||||
import ShortTextNoteCard from './ShortTextNoteCard'
|
||||
import NormalNoteCard from './NormalNoteCard'
|
||||
|
||||
export default function RepostNoteCard({ event, className }: { event: Event; className?: string }) {
|
||||
const targetEvent = useMemo(() => {
|
||||
|
|
@ -19,5 +19,5 @@ export default function RepostNoteCard({ event, className }: { event: Event; cla
|
|||
}, [event])
|
||||
if (!targetEvent) return null
|
||||
|
||||
return <ShortTextNoteCard className={className} reposter={event.pubkey} event={targetEvent} />
|
||||
return <NormalNoteCard className={className} reposter={event.pubkey} event={targetEvent} />
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue