import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { NETWORK_TO_NAME_MAP, BUYABLE_CHAINS_MAP, } from '../../../../../shared/constants/network'; import { EVENT, EVENT_NAMES, } from '../../../../../shared/constants/metametrics'; import Button from '../../../ui/button'; import LogoMoonPay from '../../../ui/logo/logo-moonpay'; import LogoWyre from '../../../ui/logo/logo-wyre'; import LogoTransak from '../../../ui/logo/logo-transak'; import LogoCoinbasePay from '../../../ui/logo/logo-coinbasepay'; import LogoDepositEth from '../../../ui/logo/logo-deposit-eth'; export default class DepositEtherModal extends Component { static contextTypes = { t: PropTypes.func, trackEvent: PropTypes.func.isRequired, }; static propTypes = { chainId: PropTypes.string.isRequired, isTestnet: PropTypes.bool.isRequired, isBuyableTransakChain: PropTypes.bool.isRequired, isBuyableMoonPayChain: PropTypes.bool.isRequired, isBuyableWyreChain: PropTypes.bool.isRequired, isBuyableCoinbasePayChain: PropTypes.bool.isRequired, toWyre: PropTypes.func.isRequired, toTransak: PropTypes.func.isRequired, toMoonPay: PropTypes.func.isRequired, toCoinbasePay: PropTypes.func.isRequired, address: PropTypes.string.isRequired, toFaucet: PropTypes.func.isRequired, hideWarning: PropTypes.func.isRequired, hideModal: PropTypes.func.isRequired, showAccountDetailModal: PropTypes.func.isRequired, }; goToAccountDetailsModal = () => { this.props.hideWarning(); this.props.hideModal(); this.props.showAccountDetailModal(); }; renderRow({ logo, title, text, buttonLabel, onButtonClick, hide, className, hideButton, hideTitle, onBackClick, showBackButton, }) { if (hide) { return null; } return (