diff --git a/src/shared/components/comment/comment-form.tsx b/src/shared/components/comment/comment-form.tsx index c60cde20..7e4aa9fe 100644 --- a/src/shared/components/comment/comment-form.tsx +++ b/src/shared/components/comment/comment-form.tsx @@ -21,6 +21,7 @@ interface CommentFormProps { onReplyCancel?(): void; allLanguages: Language[]; siteLanguages: number[]; + containerClass?: string; onUpsertComment(form: EditComment | CreateComment): void; } @@ -40,7 +41,7 @@ export class CommentForm extends Component { : undefined; return ( -
+
{UserService.Instance.myUserInfo ? ( { focus allLanguages={this.props.allLanguages} siteLanguages={this.props.siteLanguages} + containerClass="comment-comment-container" onUpsertComment={this.props.onEditComment} /> )} @@ -1143,6 +1144,7 @@ export class CommentNode extends Component { focus allLanguages={this.props.allLanguages} siteLanguages={this.props.siteLanguages} + containerClass="comment-comment-container" onUpsertComment={this.props.onCreateComment} /> )} diff --git a/src/shared/components/post/post.tsx b/src/shared/components/post/post.tsx index 9c68532b..652c38c2 100644 --- a/src/shared/components/post/post.tsx +++ b/src/shared/components/post/post.tsx @@ -384,6 +384,7 @@ export class Post extends Component { disabled={res.post_view.post.locked} allLanguages={this.state.siteRes.all_languages} siteLanguages={this.state.siteRes.discussion_languages} + containerClass="post-comment-container" onUpsertComment={this.handleCreateComment} finished={this.state.finished.get(0)} />