refactor(popup): show replies for kind 1 in popup

This commit is contained in:
en 2025-02-14 20:38:28 +01:00
parent 84d5400872
commit 717b2a3dfe

View File

@ -20,7 +20,6 @@ import { CommentsLoaderResult } from 'types/comments'
import { adjustTextareaHeight, handleCommentSubmit, hexToNpub } from 'utils'
import { Reactions } from './Reactions'
import { Zap } from './Zap'
import { NDKKind } from '@nostr-dev-kit/ndk'
import { Comment } from './Comment'
import { useComments } from 'hooks/useComments'
import { CommentContent } from './CommentContent'
@ -251,8 +250,6 @@ export const CommentsPopup = () => {
{typeof profile?.lud16 !== 'undefined' &&
profile.lud16 !== '' && <Zap {...event.rawEvent()} />}
{event.kind === NDKKind.GenericReply && (
<>
<span className='IBMSMSMBSSCL_CAElement IBMSMSMBSSCL_CAEReplies'>
<svg
xmlns='http://www.w3.org/2000/svg'
@ -267,12 +264,8 @@ export const CommentsPopup = () => {
<p className='IBMSMSMBSSCL_CAElementText'>
{commentEvents.length}
</p>
<p className='IBMSMSMBSSCL_CAElementText'>
Replies
</p>
<p className='IBMSMSMBSSCL_CAElementText'>Replies</p>
</span>
</>
)}
</div>
</div>
</div>