From 717b2a3dfe6cc5b3f7c2884e94289b16cec5693b Mon Sep 17 00:00:00 2001 From: en Date: Fri, 14 Feb 2025 20:38:28 +0100 Subject: [PATCH] refactor(popup): show replies for kind 1 in popup --- src/components/comment/CommentsPopup.tsx | 39 ++++++++++-------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/src/components/comment/CommentsPopup.tsx b/src/components/comment/CommentsPopup.tsx index 9a89119..d19e127 100644 --- a/src/components/comment/CommentsPopup.tsx +++ b/src/components/comment/CommentsPopup.tsx @@ -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,28 +250,22 @@ export const CommentsPopup = () => { {typeof profile?.lud16 !== 'undefined' && profile.lud16 !== '' && } - {event.kind === NDKKind.GenericReply && ( - <> - - - - -

- {commentEvents.length} -

-

- Replies -

-
- - )} + + + + +

+ {commentEvents.length} +

+

Replies

+