1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-02 20:30:54 +00:00

Textare max size

This commit is contained in:
Vladimir Volek 2018-10-20 01:19:59 +02:00
parent 7ecfdb7ec2
commit 739339b53e
2 changed files with 14 additions and 4 deletions

View File

@ -126,6 +126,8 @@ const TextArea = ({
name, name,
onChange, onChange,
topLabel, topLabel,
rows,
maxRows,
state = '', state = '',
bottomText = '', bottomText = '',
isInTrezorAction = false, isInTrezorAction = false,
@ -137,6 +139,8 @@ const TextArea = ({
<TopLabel>{topLabel}</TopLabel> <TopLabel>{topLabel}</TopLabel>
)} )}
<StyledTextarea <StyledTextarea
maxRows={maxRows}
rows={rows}
className={className} className={className}
disabled={isDisabled} disabled={isDisabled}
name={name} name={name}
@ -167,6 +171,8 @@ TextArea.propTypes = {
customStyle: PropTypes.string, customStyle: PropTypes.string,
placeholder: PropTypes.string, placeholder: PropTypes.string,
value: PropTypes.string, value: PropTypes.string,
maxRows: PropTypes.number,
rows: PropTypes.number,
name: PropTypes.string, name: PropTypes.string,
isDisabled: PropTypes.bool, isDisabled: PropTypes.bool,
topLabel: PropTypes.node, topLabel: PropTypes.node,

View File

@ -155,7 +155,8 @@ class SignVerify extends Component {
name="signMessage" name="signMessage"
value={this.state.signMessage} value={this.state.signMessage}
onChange={this.handleInputChange} onChange={this.handleInputChange}
rows="2" rows={4}
maxRows={4}
maxLength="255" maxLength="255"
isInTrezorAction={this.props.isSignProgress} isInTrezorAction={this.props.isSignProgress}
/> />
@ -175,7 +176,8 @@ class SignVerify extends Component {
<Textarea <Textarea
name="signSignature" name="signSignature"
value={this.props.signature} value={this.props.signature}
rows="2" rows={4}
maxRows={4}
maxLength="255" maxLength="255"
isDisabled isDisabled
/> />
@ -209,7 +211,8 @@ class SignVerify extends Component {
name="verifyMessage" name="verifyMessage"
value={this.state.verifyMessage} value={this.state.verifyMessage}
onChange={this.handleInputChange} onChange={this.handleInputChange}
rows="4" rows={4}
maxRows={4}
maxLength="255" maxLength="255"
/> />
</Row> </Row>
@ -219,7 +222,8 @@ class SignVerify extends Component {
name="verifySignature" name="verifySignature"
value={this.state.verifySignature} value={this.state.verifySignature}
onChange={this.handleInputChange} onChange={this.handleInputChange}
rows="4" rows={4}
maxRows={4}
maxLength="255" maxLength="255"
/> />
</Row> </Row>