From 717494b4ade1e1a91dcf726e37342c9d8731515e Mon Sep 17 00:00:00 2001 From: codytseng Date: Mon, 9 Jun 2025 10:07:01 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=92=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ReplyNoteList/index.tsx | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/components/ReplyNoteList/index.tsx b/src/components/ReplyNoteList/index.tsx index ca65c1ea..570eb349 100644 --- a/src/components/ReplyNoteList/index.tsx +++ b/src/components/ReplyNoteList/index.tsx @@ -21,15 +21,7 @@ type TRootInfo = { type: 'event'; id: string; pubkey: string } | { type: 'I'; id const LIMIT = 100 const SHOW_COUNT = 10 -export default function ReplyNoteList({ - index, - event, - className -}: { - index?: number - event: NEvent - className?: string -}) { +export default function ReplyNoteList({ index, event }: { index?: number; event: NEvent }) { const { t } = useTranslation() const { currentIndex } = useSecondaryPage() const { hideUntrustedInteractions, isUserTrusted } = useUserTrust() @@ -238,7 +230,7 @@ export default function ReplyNoteList({ }, []) return ( - <> +
{loading && (replies.length === 0 ? : )} {!loading && until && (
)} -
+
{replies.slice(0, showCount).map((reply) => { if (hideUntrustedInteractions && !isUserTrusted(reply.pubkey)) { const repliesForThisReply = repliesMap.get(reply.id) @@ -286,6 +278,6 @@ export default function ReplyNoteList({
)}
- +
) }