onReplyCancel?(): void;
allLanguages: Language[];
siteLanguages: number[];
+ containerClass?: string;
onUpsertComment(form: EditComment | CreateComment): void;
}
: undefined;
return (
- <div className="mb-3">
+ <div className={["mb-3", this.props.containerClass].join(" ")}>
{UserService.Instance.myUserInfo ? (
<MarkdownTextArea
initialContent={initialContent}
focus
allLanguages={this.props.allLanguages}
siteLanguages={this.props.siteLanguages}
+ containerClass="comment-comment-container"
onUpsertComment={this.props.onEditComment}
/>
)}
focus
allLanguages={this.props.allLanguages}
siteLanguages={this.props.siteLanguages}
+ containerClass="comment-comment-container"
onUpsertComment={this.props.onCreateComment}
/>
)}
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)}
/>