|
@@ -152,7 +152,7 @@ export const PageComment: FC<PageCommentProps> = memo((props:PageCommentProps):
|
|
|
/>
|
|
/>
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
- const generateReplyCommentElements = (replyComments: ICommentHasIdList) => (
|
|
|
|
|
|
|
+ const generateReplyCommentsElement = (replyComments: ICommentHasIdList) => (
|
|
|
<ReplyComments
|
|
<ReplyComments
|
|
|
isReadOnly={isReadOnly}
|
|
isReadOnly={isReadOnly}
|
|
|
replyList={replyComments}
|
|
replyList={replyComments}
|
|
@@ -184,7 +184,7 @@ export const PageComment: FC<PageCommentProps> = memo((props:PageCommentProps):
|
|
|
return (
|
|
return (
|
|
|
<div key={comment._id} className={commentThreadClasses}>
|
|
<div key={comment._id} className={commentThreadClasses}>
|
|
|
{generateCommentElement(comment)}
|
|
{generateCommentElement(comment)}
|
|
|
- {hasReply && generateReplyCommentElements(allReplies[comment._id])}
|
|
|
|
|
|
|
+ {hasReply && generateReplyCommentsElement(allReplies[comment._id])}
|
|
|
{(!isReadOnly && !showEditorIds.has(comment._id)) && (
|
|
{(!isReadOnly && !showEditorIds.has(comment._id)) && (
|
|
|
<div className="text-right">
|
|
<div className="text-right">
|
|
|
<Button
|
|
<Button
|