clean confirm add token component

feature/default_network_editable
Esteban MIno 6 years ago
parent af35b415ab
commit a57f56fdca
  1. 5
      ui/app/components/pages/confirm-add-token/confirm-add-token.component.js
  2. 3
      ui/app/components/pages/confirm-add-token/confirm-add-token.container.js

@ -15,7 +15,6 @@ export default class ConfirmAddToken extends Component {
clearPendingTokens: PropTypes.func,
addTokens: PropTypes.func,
pendingTokens: PropTypes.object,
removeSuggestedTokens: PropTypes.func,
}
componentDidMount () {
@ -33,7 +32,7 @@ export default class ConfirmAddToken extends Component {
}
render () {
const { history, addTokens, clearPendingTokens, pendingTokens, removeSuggestedTokens } = this.props
const { history, addTokens, clearPendingTokens, pendingTokens } = this.props
return (
<div className="page-container">
@ -92,8 +91,6 @@ export default class ConfirmAddToken extends Component {
large
className="page-container__footer-button"
onClick={() => {
// TODO find the right pace to removeSuggestedTokens
removeSuggestedTokens()
history.push(ADD_TOKEN_ROUTE)
}}
>

@ -3,7 +3,7 @@ import ConfirmAddToken from './confirm-add-token.component'
const extend = require('xtend')
const { addTokens, clearPendingTokens, removeSuggestedTokens } = require('../../../actions')
const { addTokens, clearPendingTokens } = require('../../../actions')
const mapStateToProps = ({ metamask }) => {
const { pendingTokens, suggestedTokens } = metamask
@ -18,7 +18,6 @@ const mapDispatchToProps = dispatch => {
return {
addTokens: tokens => dispatch(addTokens(tokens)),
clearPendingTokens: () => dispatch(clearPendingTokens()),
removeSuggestedTokens: () => dispatch(removeSuggestedTokens()),
}
}

Loading…
Cancel
Save