Remove rows

This commit is contained in:
Chi Vinh Le
2018-03-21 15:46:00 +01:00
parent 65778c31ff
commit 1ecc2a8f40
3 changed files with 1 additions and 16 deletions
@@ -38,7 +38,6 @@ export default class DraftArea extends React.Component {
placeholder,
id,
disabled,
rows,
label,
charCountEnable,
maxCharCount,
@@ -72,7 +71,6 @@ export default class DraftArea extends React.Component {
placeholder,
id,
onInputChange,
rows,
disabled,
isReply,
isEdit,
@@ -86,10 +84,6 @@ export default class DraftArea extends React.Component {
}
}
DraftArea.defaultProps = {
rows: 3,
};
DraftArea.propTypes = {
charCountEnable: PropTypes.bool,
maxCharCount: PropTypes.number,
@@ -99,7 +93,6 @@ DraftArea.propTypes = {
label: PropTypes.string,
onInputChange: PropTypes.func,
disabled: PropTypes.bool,
rows: PropTypes.number,
root: PropTypes.object.isRequired,
comment: PropTypes.object,
registerHook: PropTypes.func,
@@ -8,7 +8,6 @@ const DraftAreaContent = ({
placeholder,
id,
onInputChange,
rows,
disabled,
}) => (
<textarea
@@ -17,22 +16,17 @@ const DraftAreaContent = ({
placeholder={placeholder}
id={id}
onChange={e => onInputChange({ body: e.target.value })}
rows={rows}
rows={3}
disabled={disabled}
/>
);
DraftAreaContent.defaultProps = {
rows: 3,
};
DraftAreaContent.propTypes = {
id: PropTypes.string,
input: PropTypes.object,
placeholder: PropTypes.string,
onInputChange: PropTypes.func,
disabled: PropTypes.bool,
rows: PropTypes.number,
};
export default DraftAreaContent;
@@ -57,7 +57,6 @@ class DraftAreaContainer extends React.Component {
placeholder={this.props.placeholder}
id={this.props.id}
onInputChange={this.props.onInputChange}
rows={this.props.rows}
disabled={this.props.disabled}
charCountEnable={this.props.charCountEnable}
maxCharCount={this.props.maxCharCount}
@@ -85,7 +84,6 @@ DraftAreaContainer.propTypes = {
placeholder: PropTypes.string,
onInputChange: PropTypes.func.isRequired,
disabled: PropTypes.bool,
rows: PropTypes.number,
label: PropTypes.string.isRequired,
registerHook: PropTypes.func,
unregisterHook: PropTypes.func,