diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-24 10:10:57 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-24 10:10:57 +0800 |
commit | d5929e5c42e230fc0a52337f86b5850e68516563 (patch) | |
tree | 12514016dd7e0612b9ad724637e8a855b3ac0f46 /ui/app/components/send/to-autocomplete | |
parent | f7ad978474f42eb96f4f6c79376391504cf228c1 (diff) | |
download | tangerine-wallet-browser-d5929e5c42e230fc0a52337f86b5850e68516563.tar tangerine-wallet-browser-d5929e5c42e230fc0a52337f86b5850e68516563.tar.gz tangerine-wallet-browser-d5929e5c42e230fc0a52337f86b5850e68516563.tar.bz2 tangerine-wallet-browser-d5929e5c42e230fc0a52337f86b5850e68516563.tar.lz tangerine-wallet-browser-d5929e5c42e230fc0a52337f86b5850e68516563.tar.xz tangerine-wallet-browser-d5929e5c42e230fc0a52337f86b5850e68516563.tar.zst tangerine-wallet-browser-d5929e5c42e230fc0a52337f86b5850e68516563.zip |
added qr code scanner icon in send transaction
Diffstat (limited to 'ui/app/components/send/to-autocomplete')
-rw-r--r-- | ui/app/components/send/to-autocomplete/to-autocomplete.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/components/send/to-autocomplete/to-autocomplete.js b/ui/app/components/send/to-autocomplete/to-autocomplete.js index 80cfa7a85..2b8923dd1 100644 --- a/ui/app/components/send/to-autocomplete/to-autocomplete.js +++ b/ui/app/components/send/to-autocomplete/to-autocomplete.js @@ -94,11 +94,12 @@ ToAutoComplete.prototype.render = function () { dropdownOpen, onChange, inError, + qrScanner, } = this.props return h('div.send-v2__to-autocomplete', {}, [ - h('input.send-v2__to-autocomplete__input', { + h(`input.send-v2__to-autocomplete__input${qrScanner?'.with-qr':''}`, { placeholder: this.context.t('recipientAddress'), className: inError ? `send-v2__error-border` : '', value: to, @@ -108,7 +109,10 @@ ToAutoComplete.prototype.render = function () { borderColor: inError ? 'red' : null, }, }), - + qrScanner && h(`i.fa.fa-qrcode.fa-lg.send-v2__to-autocomplete__qr-code`, { + style: { color: '#33333' }, + onClick: () => this.props.scanQrCode(), + }), !to && h(`i.fa.fa-caret-down.fa-lg.send-v2__to-autocomplete__down-caret`, { style: { color: '#dedede' }, onClick: () => this.handleInputEvent(), |