diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2019-06-07 01:36:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-07 01:36:27 +0800 |
commit | 1a45666bec9550b06c76d58beca63be7d5cdb448 (patch) | |
tree | 425c71774d733a9f13e09173a5b7a32af691874f /ui/app/pages/send/to-autocomplete/to-autocomplete.js | |
parent | 28e030a11d75df81e16f3ebf726bfc59fcee679e (diff) | |
parent | 9180e39b080c4294100b2165039f7f88225f8001 (diff) | |
download | tangerine-wallet-browser-1a45666bec9550b06c76d58beca63be7d5cdb448.tar tangerine-wallet-browser-1a45666bec9550b06c76d58beca63be7d5cdb448.tar.gz tangerine-wallet-browser-1a45666bec9550b06c76d58beca63be7d5cdb448.tar.bz2 tangerine-wallet-browser-1a45666bec9550b06c76d58beca63be7d5cdb448.tar.lz tangerine-wallet-browser-1a45666bec9550b06c76d58beca63be7d5cdb448.tar.xz tangerine-wallet-browser-1a45666bec9550b06c76d58beca63be7d5cdb448.tar.zst tangerine-wallet-browser-1a45666bec9550b06c76d58beca63be7d5cdb448.zip |
Merge pull request #6691 from MetaMask/revert-6606
Revert "Improve ENS Address Input"
Diffstat (limited to 'ui/app/pages/send/to-autocomplete/to-autocomplete.js')
-rw-r--r-- | ui/app/pages/send/to-autocomplete/to-autocomplete.js | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/ui/app/pages/send/to-autocomplete/to-autocomplete.js b/ui/app/pages/send/to-autocomplete/to-autocomplete.js index 11f86acf3..328a5b62b 100644 --- a/ui/app/pages/send/to-autocomplete/to-autocomplete.js +++ b/ui/app/pages/send/to-autocomplete/to-autocomplete.js @@ -1,7 +1,6 @@ const Component = require('react').Component const PropTypes = require('prop-types') const h = require('react-hyperscript') -const copyToClipboard = require('copy-to-clipboard') const inherits = require('util').inherits const AccountListItem = require('../account-list-item/account-list-item.component').default const connect = require('react-redux').connect @@ -94,34 +93,24 @@ ToAutoComplete.prototype.componentDidUpdate = function (nextProps) { ToAutoComplete.prototype.render = function () { const { to, - recipient, dropdownOpen, onChange, inError, qrScanner, } = this.props - const isRecipientToDiff = recipient && recipient !== to - - return h('div.send-v2__to-autocomplete', {style: { - borderColor: inError ? 'red' : null, - }}, [ + return h('div.send-v2__to-autocomplete', {}, [ h(`input.send-v2__to-autocomplete__input${qrScanner ? '.with-qr' : ''}`, { placeholder: this.context.t('recipientAddress'), className: inError ? `send-v2__error-border` : '', - value: recipient, + value: to, onChange: event => onChange(event.target.value), onFocus: event => this.handleInputEvent(event), + style: { + borderColor: inError ? 'red' : null, + }, }), - isRecipientToDiff && h(Tooltip, {title: this.context.t('copyToClipboard')}, - h('div.send-v2__to-autocomplete__resolved', { - onClick: (event) => { - event.preventDefault() - event.stopPropagation() - copyToClipboard(to) - }, - }, to)), qrScanner && h(Tooltip, { title: this.context.t('scanQrCode'), position: 'bottom', |