itizawa 6 лет назад
Родитель
Сommit
4eb88373a1
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      src/client/js/components/PageComment/Comment.jsx

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

@@ -16,6 +16,7 @@ import { createSubscribedElement } from '../UnstatedUtils';
 import RevisionBody from '../Page/RevisionBody';
 import UserPicture from '../User/UserPicture';
 import Username from '../User/Username';
+import CommentEditor from './CommentEditor';
 
 /**
  *
@@ -247,7 +248,13 @@ class Comment extends React.Component {
     return (
       <React.Fragment>
 
-        {showReEditor ? (<p>reEditは押された</p>) : (
+        {showReEditor ? (
+          <CommentEditor
+            growiRenderer={this.growiRenderer}
+            replyTo={commentId}
+            commentButtonClickedHandler={this.commentButtonClickedHandler}
+          />
+        ) : (
           <div className={rootClassName}>
             <UserPicture user={creator} />
             <div className="page-comment-main">