From 42e21c8ee94a5543c1faadc61308fa820903afbf Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Wed, 5 Mar 2025 18:30:41 +0100 Subject: [PATCH] fix key warning --- src/components/comment-content/comment-content.tsx | 10 ++++++---- src/components/post-desktop/post-desktop.tsx | 9 +++++++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/components/comment-content/comment-content.tsx b/src/components/comment-content/comment-content.tsx index 3450f05b..38168554 100644 --- a/src/components/comment-content/comment-content.tsx +++ b/src/components/comment-content/comment-content.tsx @@ -75,7 +75,7 @@ const CommentContent = ({ comment: post, replies }: { comment: Comment; replies:

- setShowFullComment(true)} /> }} /> + setShowFullComment(true)} /> }} />
)} {edit && original?.content !== content && ( @@ -87,20 +87,22 @@ const CommentContent = ({ comment: post, replies }: { comment: Comment; replies: i18nKey={'comment_edited_at_timestamp'} values={{ timestamp: getFormattedDate(edit?.timestamp) }} shouldUnescape={true} - components={{ 1: } /> }} + components={{ + 1: } />, + }} />{' '} {reason && <>{t('reason_reason', { reason: reason, interpolation: { escapeValue: false } })} } {showOriginal ? ( setShowOriginal(!showOriginal)} /> }} + components={{ 1: setShowOriginal(!showOriginal)} /> }} /> ) : ( setShowOriginal(!showOriginal)} /> }} + components={{ 1: setShowOriginal(!showOriginal)} /> }} /> )} diff --git a/src/components/post-desktop/post-desktop.tsx b/src/components/post-desktop/post-desktop.tsx index 1cc2718a..b9ca7826 100644 --- a/src/components/post-desktop/post-desktop.tsx +++ b/src/components/post-desktop/post-desktop.tsx @@ -433,11 +433,16 @@ const PostDesktop = ({ post, roles, showAllReplies, showReplies = true, replies: }} + components={{ 1: }} values={{ repliesCount, linksCount }} /> ) : ( - }} values={{ repliesCount }} /> + }} + values={{ repliesCount }} + /> )} )}