aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-04-30 23:30:51 +0800
committerDan <danjm.com@gmail.com>2018-04-30 23:36:23 +0800
commit5529ec6efd6fa659d790b4641e47cf247b7cfca7 (patch)
treea7bdf0000b8a4f925c7786c31d3496858b55c3b5
parent26f965bcceb26ce7cdec9df9f213b44be8d9acac (diff)
downloadtangerine-wallet-browser-5529ec6efd6fa659d790b4641e47cf247b7cfca7.tar
tangerine-wallet-browser-5529ec6efd6fa659d790b4641e47cf247b7cfca7.tar.gz
tangerine-wallet-browser-5529ec6efd6fa659d790b4641e47cf247b7cfca7.tar.bz2
tangerine-wallet-browser-5529ec6efd6fa659d790b4641e47cf247b7cfca7.tar.lz
tangerine-wallet-browser-5529ec6efd6fa659d790b4641e47cf247b7cfca7.tar.xz
tangerine-wallet-browser-5529ec6efd6fa659d790b4641e47cf247b7cfca7.tar.zst
tangerine-wallet-browser-5529ec6efd6fa659d790b4641e47cf247b7cfca7.zip
Fix close button on send screen
-rw-r--r--ui/app/components/send_/send-header/send-header.component.js7
-rw-r--r--ui/app/components/send_/send.component.js2
2 files changed, 5 insertions, 4 deletions
diff --git a/ui/app/components/send_/send-header/send-header.component.js b/ui/app/components/send_/send-header/send-header.component.js
index 30cb5c749..098fd89a4 100644
--- a/ui/app/components/send_/send-header/send-header.component.js
+++ b/ui/app/components/send_/send-header/send-header.component.js
@@ -1,23 +1,24 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import PageContainerHeader from '../../page-container/page-container-header.component'
+import { DEFAULT_ROUTE } from '../../../routes'
export default class SendHeader extends Component {
static propTypes = {
clearSend: PropTypes.func,
- goHome: PropTypes.func,
+ history: PropTypes.object,
isToken: PropTypes.bool,
};
render () {
- const { isToken, clearSend, goHome } = this.props
+ const { isToken, clearSend, history } = this.props
return (
<PageContainerHeader
onClose={() => {
clearSend()
- goHome()
+ history.push(DEFAULT_ROUTE)
}}
subtitle={this.context.t('onlySendToEtherAddress')}
title={isToken ? this.context.t('sendTokens') : this.context.t('sendETH')}
diff --git a/ui/app/components/send_/send.component.js b/ui/app/components/send_/send.component.js
index e014e5bce..969d76946 100644
--- a/ui/app/components/send_/send.component.js
+++ b/ui/app/components/send_/send.component.js
@@ -129,7 +129,7 @@ export default class SendTransactionScreen extends PersistentForm {
return (
<PageContainer>
- <SendHeader/>
+ <SendHeader history={history}/>
<SendContent/>
<SendFooter history={history}/>
</PageContainer>