import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import Button from '../button' import Identicon from '../identicon' import TokenBalance from '../token-balance' import UserPreferencedCurrencyDisplay from '../user-preferenced-currency-display' import { SEND_ROUTE } from '../../routes' import { PRIMARY, SECONDARY } from '../../constants/common' import Tooltip from '../tooltip-v2' export default class TransactionViewBalance extends PureComponent { static contextTypes = { t: PropTypes.func, } static propTypes = { showDepositModal: PropTypes.func, selectedToken: PropTypes.object, history: PropTypes.object, network: PropTypes.string, balance: PropTypes.string, assetImage: PropTypes.string, balanceIsCached: PropTypes.bool, showFiat: PropTypes.bool, } static defaultProps = { showFiat: true, } renderBalance () { const { selectedToken, balance, balanceIsCached, showFiat } = this.props return selectedToken ? (