diff options
Fix font sizes, colors. Include data tab for send-eth transaction confirmations that have data
Diffstat (limited to 'ui/app/components/pages/confirm-send-ether/confirm-send-ether.component.js')
-rw-r--r-- | ui/app/components/pages/confirm-send-ether/confirm-send-ether.component.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ui/app/components/pages/confirm-send-ether/confirm-send-ether.component.js b/ui/app/components/pages/confirm-send-ether/confirm-send-ether.component.js index c590bacf3..442a478b8 100644 --- a/ui/app/components/pages/confirm-send-ether/confirm-send-ether.component.js +++ b/ui/app/components/pages/confirm-send-ether/confirm-send-ether.component.js @@ -11,6 +11,7 @@ export default class ConfirmSendEther extends Component { static propTypes = { editTransaction: PropTypes.func, history: PropTypes.object, + txParams: PropTypes.object, } handleEdit ({ txData }) { @@ -19,11 +20,18 @@ export default class ConfirmSendEther extends Component { history.push(SEND_ROUTE) } + shouldHideData () { + const { txParams = {} } = this.props + return !txParams.data + } + render () { + const hideData = this.shouldHideData() + return ( <ConfirmTransactionBase action={this.context.t('confirm')} - hideData + hideData={hideData} onEdit={confirmTransactionData => this.handleEdit(confirmTransactionData)} /> ) |