Adding a comment here placeholder. Fixes #301

This commit is contained in:
Dessalines 2021-06-03 11:24:45 -04:00
parent 398befb439
commit 76dd9b1b77
2 changed files with 3 additions and 0 deletions

View file

@ -82,6 +82,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
disabled={this.props.disabled} disabled={this.props.disabled}
onSubmit={this.handleCommentSubmit} onSubmit={this.handleCommentSubmit}
onReplyCancel={this.handleReplyCancel} onReplyCancel={this.handleReplyCancel}
placeholder={i18n.t("comment_here")}
/> />
) : ( ) : (
<div class="alert alert-light" role="alert"> <div class="alert alert-light" role="alert">

View file

@ -28,6 +28,7 @@ interface MarkdownTextAreaProps {
onContentChange?(val: string): any; onContentChange?(val: string): any;
onReplyCancel?(): any; onReplyCancel?(): any;
hideNavigationWarnings?: boolean; hideNavigationWarnings?: boolean;
placeholder?: string;
} }
interface MarkdownTextAreaState { interface MarkdownTextAreaState {
@ -131,6 +132,7 @@ export class MarkdownTextArea extends Component<
disabled={this.props.disabled} disabled={this.props.disabled}
rows={2} rows={2}
maxLength={this.props.maxLength || 10000} maxLength={this.props.maxLength || 10000}
placeholder={this.props.placeholder}
/> />
{this.state.previewMode && ( {this.state.previewMode && (
<div <div