|
@@ -168,8 +168,11 @@ export const PageComment: FC<PageCommentProps> = memo((props: PageCommentProps):
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div key={comment._id} className={commentThreadClasses}>
|
|
<div key={comment._id} className={commentThreadClasses}>
|
|
|
|
|
+ {/* Comment */}
|
|
|
{commentElement(comment)}
|
|
{commentElement(comment)}
|
|
|
|
|
+ {/* Reply comments */}
|
|
|
{hasReply && replyCommentsElement(allReplies[comment._id])}
|
|
{hasReply && replyCommentsElement(allReplies[comment._id])}
|
|
|
|
|
+
|
|
|
{(!isReadOnly && !showEditorIds.has(comment._id)) && (
|
|
{(!isReadOnly && !showEditorIds.has(comment._id)) && (
|
|
|
<div className="d-flex flex-row-reverse">
|
|
<div className="d-flex flex-row-reverse">
|
|
|
<NotAvailableForGuest>
|
|
<NotAvailableForGuest>
|
|
@@ -187,6 +190,8 @@ export const PageComment: FC<PageCommentProps> = memo((props: PageCommentProps):
|
|
|
</NotAvailableForGuest>
|
|
</NotAvailableForGuest>
|
|
|
</div>
|
|
</div>
|
|
|
)}
|
|
)}
|
|
|
|
|
+
|
|
|
|
|
+ {/* Editor to reply */}
|
|
|
{(!isReadOnly && showEditorIds.has(comment._id)) && (
|
|
{(!isReadOnly && showEditorIds.has(comment._id)) && (
|
|
|
<CommentEditor
|
|
<CommentEditor
|
|
|
pageId={pageId}
|
|
pageId={pageId}
|