|
|
@ -15,6 +15,7 @@ export default class ConfirmAddToken extends Component { |
|
|
|
clearPendingTokens: PropTypes.func, |
|
|
|
clearPendingTokens: PropTypes.func, |
|
|
|
addTokens: PropTypes.func, |
|
|
|
addTokens: PropTypes.func, |
|
|
|
pendingTokens: PropTypes.object, |
|
|
|
pendingTokens: PropTypes.object, |
|
|
|
|
|
|
|
removeSuggestedTokens: PropTypes.func, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
componentDidMount () { |
|
|
|
componentDidMount () { |
|
|
@ -32,7 +33,7 @@ export default class ConfirmAddToken extends Component { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
render () { |
|
|
|
render () { |
|
|
|
const { history, addTokens, clearPendingTokens, pendingTokens } = this.props |
|
|
|
const { history, addTokens, clearPendingTokens, pendingTokens, removeSuggestedTokens } = this.props |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="page-container"> |
|
|
|
<div className="page-container"> |
|
|
@ -90,7 +91,11 @@ export default class ConfirmAddToken extends Component { |
|
|
|
type="default" |
|
|
|
type="default" |
|
|
|
large |
|
|
|
large |
|
|
|
className="page-container__footer-button" |
|
|
|
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') } |
|
|
|
{ this.context.t('back') } |
|
|
|
</Button> |
|
|
|
</Button> |
|
|
|