diff options
author | Dan <danjm.com@gmail.com> | 2018-04-27 08:38:14 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-04-27 10:46:11 +0800 |
commit | 91c201aa72581a59a0d2ef73a225b1768584dea7 (patch) | |
tree | 00782275e57c568fff16e289002a6c3a91f3c81e /ui/app/components/send_/send-content/send-to-row/send-to-row.component.js | |
parent | 8ff7806f1b471a90fa3f45ebc10f0f4452ade541 (diff) | |
download | tangerine-wallet-browser-91c201aa72581a59a0d2ef73a225b1768584dea7.tar.gz tangerine-wallet-browser-91c201aa72581a59a0d2ef73a225b1768584dea7.tar.zst tangerine-wallet-browser-91c201aa72581a59a0d2ef73a225b1768584dea7.zip |
Lint fixes and alphabetization for i3725-refactor-send-component
Diffstat (limited to 'ui/app/components/send_/send-content/send-to-row/send-to-row.component.js')
-rw-r--r-- | ui/app/components/send_/send-content/send-to-row/send-to-row.component.js | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/ui/app/components/send_/send-content/send-to-row/send-to-row.component.js b/ui/app/components/send_/send-content/send-to-row/send-to-row.component.js index a20bbf434..a6e4c1624 100644 --- a/ui/app/components/send_/send-content/send-to-row/send-to-row.component.js +++ b/ui/app/components/send_/send-content/send-to-row/send-to-row.component.js @@ -6,15 +6,15 @@ import EnsInput from '../../../ens-input' export default class SendToRow extends Component { static propTypes = { + closeToDropdown: PropTypes.func, + inError: PropTypes.bool, + network: PropTypes.string, + openToDropdown: PropTypes.func, to: PropTypes.string, toAccounts: PropTypes.array, toDropdownOpen: PropTypes.bool, - inError: PropTypes.bool, updateSendTo: PropTypes.func, updateSendToError: PropTypes.func, - openToDropdown: PropTypes.func, - closeToDropdown: PropTypes.func, - network: PropTypes.string, }; handleToChange (to, nickname = '') { @@ -25,40 +25,35 @@ export default class SendToRow extends Component { render () { const { - from, - fromAccounts, - toAccounts, - conversionRate, - fromDropdownOpen, - tokenContract, - openToDropdown, closeToDropdown, - network, inError, + network, + openToDropdown, to, + toAccounts, toDropdownOpen, } = this.props return ( <SendRowWrapper + errorType={'to'} label={`${this.context.t('to')}:`} showError={inError} - errorType={'to'} > <EnsInput - name={'address'} - placeholder={this.context.t('recipientAddress')} - network={network} - to={to} accounts={toAccounts} - dropdownOpen={toDropdownOpen} - openDropdown={() => openToDropdown()} closeDropdown={() => closeToDropdown()} - onChange={(newTo, newNickname) => this.handleToChange(newTo, newNickname)} + dropdownOpen={toDropdownOpen} inError={inError} + name={'address'} + network={network} + onChange={(newTo, newNickname) => this.handleToChange(newTo, newNickname)} + openDropdown={() => openToDropdown()} + placeholder={this.context.t('recipientAddress')} + to={to} /> </SendRowWrapper> - ); + ) } } |