diff options
author | Dan <danjm.com@gmail.com> | 2018-04-11 22:21:54 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-04-11 22:21:54 +0800 |
commit | 59c887301aba5d746d669441ec78ef7ec5de3146 (patch) | |
tree | 3236b2e9acbcf45358ecaaf0e291a1a9505729b1 /ui/app/components/send_/send-content/send-to-row | |
parent | f4d8da927734b2dcd597d1cc833f9fe6ac59cc77 (diff) | |
download | tangerine-wallet-browser-59c887301aba5d746d669441ec78ef7ec5de3146.tar.gz tangerine-wallet-browser-59c887301aba5d746d669441ec78ef7ec5de3146.tar.zst tangerine-wallet-browser-59c887301aba5d746d669441ec78ef7ec5de3146.zip |
second commit
Diffstat (limited to 'ui/app/components/send_/send-content/send-to-row')
-rw-r--r-- | ui/app/components/send_/send-content/send-to-row/send-to-row.component.js | 8 | ||||
-rw-r--r-- | ui/app/components/send_/send-content/send-to-row/send-to-row.selectors.js | 2 |
2 files changed, 7 insertions, 3 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 abcb54efc..5f81402d8 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 @@ -1,6 +1,6 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' -import SendRowWrapper from '../../../send/from-dropdown' +import SendRowWrapper from '../send-row-wrapper/send-row-wrapper.component' import ToDropdown from '../../../ens-input' export default class SendToRow extends Component { @@ -37,7 +37,11 @@ export default class SendToRow extends Component { } = this.props return ( - <SendRowWrapper label={`${this.context.t('to')}:`}> + <SendRowWrapper + label={`${this.context.t('to')}:`} + showError={inError} + errorType={'to'} + > <EnsInput name={'address'} placeholder={this.context.t('recipient Address')} diff --git a/ui/app/components/send_/send-content/send-to-row/send-to-row.selectors.js b/ui/app/components/send_/send-content/send-to-row/send-to-row.selectors.js index 05bb65fa3..c741aad84 100644 --- a/ui/app/components/send_/send-content/send-to-row/send-to-row.selectors.js +++ b/ui/app/components/send_/send-content/send-to-row/send-to-row.selectors.js @@ -10,5 +10,5 @@ function getToDropdownOpen (state) { } function sendToIsInError (state) { - return Boolean(state.metamask.send.to) + return Boolean(state.metamask.send.errors.to) } |