Don't render faucet row in deposit modal for custom chains (#10674)

Fixes MetaMask/metamask-extension#10038
feature/default_network_editable
ryanml 4 years ago committed by GitHub
parent b50fe3184a
commit 6cfdac529f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      ui/app/components/app/modals/deposit-ether-modal/deposit-ether-modal.component.js

@ -155,14 +155,15 @@ export default class DepositEtherModal extends Component {
buttonLabel: this.context.t('viewAccount'),
onButtonClick: () => this.goToAccountDetailsModal(),
})}
{this.renderRow({
logo: <i className="fa fa-tint fa-2x" />,
title: this.context.t('testFaucet'),
text: this.context.t('getEtherFromFaucet', [networkName]),
buttonLabel: this.context.t('getEther'),
onButtonClick: () => toFaucet(chainId),
hide: !isTestnet,
})}
{networkName &&
this.renderRow({
logo: <i className="fa fa-tint fa-2x" />,
title: this.context.t('testFaucet'),
text: this.context.t('getEtherFromFaucet', [networkName]),
buttonLabel: this.context.t('getEther'),
onButtonClick: () => toFaucet(chainId),
hide: !isTestnet,
})}
</div>
</div>
</div>

Loading…
Cancel
Save