Comment previous edit

This commit is contained in:
okbel
2018-02-22 11:24:37 -03:00
parent 4579537709
commit 2f4c084811
6 changed files with 28 additions and 9 deletions
@@ -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}
/>
);
}