1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-26 17:08:07 +00:00

add readOnly property to Input component

This commit is contained in:
Szymon Lesisz 2018-11-12 17:54:03 +01:00
parent b9b7d2d076
commit 80158d60c6
2 changed files with 3 additions and 0 deletions

View File

@ -183,6 +183,7 @@ class Input extends PureComponent {
autocapitalize={this.props.autocapitalize}
spellCheck={this.props.spellCheck}
value={this.props.value}
readOnly={this.props.readOnly}
onChange={this.props.onChange}
borderColor={this.getColor(this.props.state)}
disabled={this.props.isDisabled}
@ -218,6 +219,7 @@ Input.propTypes = {
icon: PropTypes.node,
spellCheck: PropTypes.string,
value: PropTypes.string,
readOnly: PropTypes.bool,
onChange: PropTypes.func,
state: PropTypes.string,
bottomText: PropTypes.string,

View File

@ -119,6 +119,7 @@ const AccountReceive = (props: Props) => {
<Row>
<Input
type="text"
readOnly
value={address}
isPartiallyHidden={isAddressHidden}
trezorAction={isAddressVerifying ? (