diff --git a/ui/app/components/app/modals/hide-token-confirmation-modal.js b/ui/app/components/app/modals/hide-token-confirmation-modal.js index ff82ff4f9..e70e0c877 100644 --- a/ui/app/components/app/modals/hide-token-confirmation-modal.js +++ b/ui/app/components/app/modals/hide-token-confirmation-modal.js @@ -1,6 +1,5 @@ import PropTypes from 'prop-types' import React, { Component } from 'react' -import { inherits } from 'util' import { connect } from 'react-redux' import * as actions from '../../../store/actions' import Identicon from '../../ui/identicon' @@ -25,57 +24,62 @@ function mapDispatchToProps (dispatch) { } } -inherits(HideTokenConfirmationModal, Component) -function HideTokenConfirmationModal () { - Component.call(this) +class HideTokenConfirmationModal extends Component { + static contextTypes = { + t: PropTypes.func, + } - this.state = {} -} + static propTypes = { + hideToken: PropTypes.func.isRequired, + hideModal: PropTypes.func.isRequired, + assetImages: PropTypes.object.isRequired, + token: PropTypes.shape({ + symbol: PropTypes.string, + address: PropTypes.string, + }), + } -HideTokenConfirmationModal.contextTypes = { - t: PropTypes.func, + state = {} + + render () { + const { token, hideToken, hideModal, assetImages } = this.props + const { symbol, address } = token + const image = assetImages[address] + + return ( +