mirror of
https://github.com/wassname/talk.git
synced 2026-07-07 05:52:32 +08:00
Remove rows
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user