From 682fc978296ae6185d22f63e7240e76b259aced7 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Mon, 12 Nov 2018 17:54:03 +0100 Subject: [PATCH] add readOnly property to Input component --- src/components/inputs/Input/index.js | 2 ++ src/views/Wallet/views/Account/Receive/index.js | 1 + 2 files changed, 3 insertions(+) diff --git a/src/components/inputs/Input/index.js b/src/components/inputs/Input/index.js index ee25ea5a..4262efb6 100644 --- a/src/components/inputs/Input/index.js +++ b/src/components/inputs/Input/index.js @@ -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, diff --git a/src/views/Wallet/views/Account/Receive/index.js b/src/views/Wallet/views/Account/Receive/index.js index c56c7fd0..8349f0b3 100644 --- a/src/views/Wallet/views/Account/Receive/index.js +++ b/src/views/Wallet/views/Account/Receive/index.js @@ -119,6 +119,7 @@ const AccountReceive = (props: Props) => {