mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-08 09:34:16 +00:00
Adding a comment here placeholder. Fixes #301
This commit is contained in:
parent
398befb439
commit
76dd9b1b77
|
@ -82,6 +82,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
|
|||
disabled={this.props.disabled}
|
||||
onSubmit={this.handleCommentSubmit}
|
||||
onReplyCancel={this.handleReplyCancel}
|
||||
placeholder={i18n.t("comment_here")}
|
||||
/>
|
||||
) : (
|
||||
<div class="alert alert-light" role="alert">
|
||||
|
|
|
@ -28,6 +28,7 @@ interface MarkdownTextAreaProps {
|
|||
onContentChange?(val: string): any;
|
||||
onReplyCancel?(): any;
|
||||
hideNavigationWarnings?: boolean;
|
||||
placeholder?: string;
|
||||
}
|
||||
|
||||
interface MarkdownTextAreaState {
|
||||
|
@ -131,6 +132,7 @@ export class MarkdownTextArea extends Component<
|
|||
disabled={this.props.disabled}
|
||||
rows={2}
|
||||
maxLength={this.props.maxLength || 10000}
|
||||
placeholder={this.props.placeholder}
|
||||
/>
|
||||
{this.state.previewMode && (
|
||||
<div
|
||||
|
|
Loading…
Reference in a new issue