aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pages
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-08-04 07:24:12 +0800
committerEsteban MIno <efmino@uc.cl>2018-08-04 07:24:12 +0800
commit9ac9f53a73357238ed2ee0ce57c65de592cfd968 (patch)
tree3ae3540c33a84dc5fc744aaee15fde6f76f2f6c6 /ui/app/components/pages
parent12dd7a72323bf82d60e99502104e375864c0fbab (diff)
downloadtangerine-wallet-browser-9ac9f53a73357238ed2ee0ce57c65de592cfd968.tar
tangerine-wallet-browser-9ac9f53a73357238ed2ee0ce57c65de592cfd968.tar.gz
tangerine-wallet-browser-9ac9f53a73357238ed2ee0ce57c65de592cfd968.tar.bz2
tangerine-wallet-browser-9ac9f53a73357238ed2ee0ce57c65de592cfd968.tar.lz
tangerine-wallet-browser-9ac9f53a73357238ed2ee0ce57c65de592cfd968.tar.xz
tangerine-wallet-browser-9ac9f53a73357238ed2ee0ce57c65de592cfd968.tar.zst
tangerine-wallet-browser-9ac9f53a73357238ed2ee0ce57c65de592cfd968.zip
eth_watchToken working
Diffstat (limited to 'ui/app/components/pages')
-rw-r--r--ui/app/components/pages/confirm-add-token/confirm-add-token.component.js9
-rw-r--r--ui/app/components/pages/confirm-add-token/confirm-add-token.container.js3
2 files changed, 9 insertions, 3 deletions
diff --git a/ui/app/components/pages/confirm-add-token/confirm-add-token.component.js b/ui/app/components/pages/confirm-add-token/confirm-add-token.component.js
index 65d654b92..ad5264b30 100644
--- a/ui/app/components/pages/confirm-add-token/confirm-add-token.component.js
+++ b/ui/app/components/pages/confirm-add-token/confirm-add-token.component.js
@@ -15,6 +15,7 @@ export default class ConfirmAddToken extends Component {
clearPendingTokens: PropTypes.func,
addTokens: PropTypes.func,
pendingTokens: PropTypes.object,
+ removeSuggestedTokens: PropTypes.func,
}
componentDidMount () {
@@ -32,7 +33,7 @@ export default class ConfirmAddToken extends Component {
}
render () {
- const { history, addTokens, clearPendingTokens, pendingTokens } = this.props
+ const { history, addTokens, clearPendingTokens, pendingTokens, removeSuggestedTokens } = this.props
return (
<div className="page-container">
@@ -90,7 +91,11 @@ export default class ConfirmAddToken extends Component {
type="default"
large
className="page-container__footer-button"
- onClick={() => history.push(ADD_TOKEN_ROUTE)}
+ onClick={() => {
+ // TODO find the right pace to removeSuggestedTokens
+ removeSuggestedTokens()
+ history.push(ADD_TOKEN_ROUTE)
+ }}
>
{ this.context.t('back') }
</Button>
diff --git a/ui/app/components/pages/confirm-add-token/confirm-add-token.container.js b/ui/app/components/pages/confirm-add-token/confirm-add-token.container.js
index 500b406bb..47d7a105b 100644
--- a/ui/app/components/pages/confirm-add-token/confirm-add-token.container.js
+++ b/ui/app/components/pages/confirm-add-token/confirm-add-token.container.js
@@ -3,7 +3,7 @@ import ConfirmAddToken from './confirm-add-token.component'
const extend = require('xtend')
-const { addTokens, clearPendingTokens } = require('../../../actions')
+const { addTokens, clearPendingTokens, removeSuggestedTokens } = require('../../../actions')
const mapStateToProps = ({ metamask }) => {
const { pendingTokens, suggestedTokens } = metamask
@@ -18,6 +18,7 @@ const mapDispatchToProps = dispatch => {
return {
addTokens: tokens => dispatch(addTokens(tokens)),
clearPendingTokens: () => dispatch(clearPendingTokens()),
+ removeSuggestedTokens: () => dispatch(removeSuggestedTokens()),
}
}