diff options
author | Jenny Pollack <jennypollack3@gmail.com> | 2019-06-07 01:20:33 +0800 |
---|---|---|
committer | Jenny Pollack <jennypollack3@gmail.com> | 2019-06-07 01:20:33 +0800 |
commit | 9180e39b080c4294100b2165039f7f88225f8001 (patch) | |
tree | 425c71774d733a9f13e09173a5b7a32af691874f /ui/app/pages/send | |
parent | 28e030a11d75df81e16f3ebf726bfc59fcee679e (diff) | |
download | tangerine-wallet-browser-9180e39b080c4294100b2165039f7f88225f8001.tar tangerine-wallet-browser-9180e39b080c4294100b2165039f7f88225f8001.tar.gz tangerine-wallet-browser-9180e39b080c4294100b2165039f7f88225f8001.tar.bz2 tangerine-wallet-browser-9180e39b080c4294100b2165039f7f88225f8001.tar.lz tangerine-wallet-browser-9180e39b080c4294100b2165039f7f88225f8001.tar.xz tangerine-wallet-browser-9180e39b080c4294100b2165039f7f88225f8001.tar.zst tangerine-wallet-browser-9180e39b080c4294100b2165039f7f88225f8001.zip |
Revert "fixed #5524"
This reverts commit c8cb4ba3705478a16cd1e39f8edc1f277bb2ede6.
Diffstat (limited to 'ui/app/pages/send')
-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', |