refactor(popup): show replies for kind 1 in popup
This commit is contained in:
parent
84d5400872
commit
717b2a3dfe
@ -20,7 +20,6 @@ import { CommentsLoaderResult } from 'types/comments'
|
|||||||
import { adjustTextareaHeight, handleCommentSubmit, hexToNpub } from 'utils'
|
import { adjustTextareaHeight, handleCommentSubmit, hexToNpub } from 'utils'
|
||||||
import { Reactions } from './Reactions'
|
import { Reactions } from './Reactions'
|
||||||
import { Zap } from './Zap'
|
import { Zap } from './Zap'
|
||||||
import { NDKKind } from '@nostr-dev-kit/ndk'
|
|
||||||
import { Comment } from './Comment'
|
import { Comment } from './Comment'
|
||||||
import { useComments } from 'hooks/useComments'
|
import { useComments } from 'hooks/useComments'
|
||||||
import { CommentContent } from './CommentContent'
|
import { CommentContent } from './CommentContent'
|
||||||
@ -251,8 +250,6 @@ export const CommentsPopup = () => {
|
|||||||
{typeof profile?.lud16 !== 'undefined' &&
|
{typeof profile?.lud16 !== 'undefined' &&
|
||||||
profile.lud16 !== '' && <Zap {...event.rawEvent()} />}
|
profile.lud16 !== '' && <Zap {...event.rawEvent()} />}
|
||||||
|
|
||||||
{event.kind === NDKKind.GenericReply && (
|
|
||||||
<>
|
|
||||||
<span className='IBMSMSMBSSCL_CAElement IBMSMSMBSSCL_CAEReplies'>
|
<span className='IBMSMSMBSSCL_CAElement IBMSMSMBSSCL_CAEReplies'>
|
||||||
<svg
|
<svg
|
||||||
xmlns='http://www.w3.org/2000/svg'
|
xmlns='http://www.w3.org/2000/svg'
|
||||||
@ -267,12 +264,8 @@ export const CommentsPopup = () => {
|
|||||||
<p className='IBMSMSMBSSCL_CAElementText'>
|
<p className='IBMSMSMBSSCL_CAElementText'>
|
||||||
{commentEvents.length}
|
{commentEvents.length}
|
||||||
</p>
|
</p>
|
||||||
<p className='IBMSMSMBSSCL_CAElementText'>
|
<p className='IBMSMSMBSSCL_CAElementText'>Replies</p>
|
||||||
Replies
|
|
||||||
</p>
|
|
||||||
</span>
|
</span>
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user