itizawa 6 лет назад
Родитель
Сommit
fc046b6fcc

+ 1 - 1
src/client/js/components/PageComment/Comment.jsx

@@ -230,7 +230,7 @@ class Comment extends React.PureComponent {
         )
       }
 
-        <ReplyComments replyList={this.props.replyList} />
+        <ReplyComments {...this.props} />
 
       </React.Fragment>
     );

+ 3 - 3
src/client/js/components/PageComment/ReplyComments.jsx

@@ -19,10 +19,10 @@ const ReplyComments = (props) => {
   const renderReply = (reply) => {
     return (
       <div key={reply._id} className="page-comment-reply">
-        {reply.comment}
-        {/* <CommentWrapper
+        {/* <Comment
           comment={reply}
-          deleteBtnClicked={props.deleteBtnClicked}
+          editBtnClicked={props.confirmToEditComment}
+          deleteBtnClicked={props.confirmToDeleteComment}
           growiRenderer={props.growiRenderer}
         /> */}
       </div>