mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Comment previous edit
This commit is contained in:
@@ -112,6 +112,7 @@ export class CommentForm extends React.Component {
|
||||
disabled={disableTextArea}
|
||||
charCountEnable={this.props.charCountEnable}
|
||||
maxCharCount={this.props.maxCharCount}
|
||||
comment={this.props.comment}
|
||||
/>
|
||||
<div className={cn(styles.buttonContainer, `${name}-button-container`)}>
|
||||
{this.props.buttonContainerStart}
|
||||
|
||||
@@ -38,6 +38,7 @@ export default class DraftArea extends React.Component {
|
||||
charCountEnable,
|
||||
maxCharCount,
|
||||
onChange,
|
||||
comment,
|
||||
} = this.props;
|
||||
|
||||
const tASettings = {
|
||||
@@ -47,6 +48,7 @@ export default class DraftArea extends React.Component {
|
||||
onChange,
|
||||
rows,
|
||||
disabled,
|
||||
comment,
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -140,6 +140,7 @@ export class EditableCommentContent extends React.Component {
|
||||
return (
|
||||
<div className={styles.editCommentForm}>
|
||||
<CommentForm
|
||||
comment={this.props.comment}
|
||||
defaultValue={this.props.comment.body}
|
||||
bodyInputId={id}
|
||||
charCountEnable={this.props.charCountEnable}
|
||||
|
||||
@@ -50,6 +50,7 @@ export default class DraftAreaContainer extends React.Component {
|
||||
charCountEnable={this.props.charCountEnable}
|
||||
maxCharCount={this.props.maxCharCount}
|
||||
label={this.props.label}
|
||||
comment={this.props.comment}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user