From e2d870f1874967b904e4ecb311aa7ecac5c0ca8e Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Wed, 23 Nov 2022 14:31:00 +0600 Subject: [PATCH] fixed image attachments on SSR --- src/components/comment/CommentContent/index.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/comment/CommentContent/index.tsx b/src/components/comment/CommentContent/index.tsx index 17f1eac1..38cef4a8 100644 --- a/src/components/comment/CommentContent/index.tsx +++ b/src/components/comment/CommentContent/index.tsx @@ -70,8 +70,15 @@ const CommentContent: FC = memo( }, [comment, onDelete]); const menu = useMemo( - () => - canEdit && , + () => ( +
+ {canEdit && ( + + + + )} +
+ ), [canEdit, startEditing, onLockClick], ); @@ -97,9 +104,10 @@ const CommentContent: FC = memo( return (
{!!prefix &&
{prefix}
} + {comment.text.trim() && ( - {menu} + {menu} {blocks.map(