1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

clean up and adds a code fence (#19005)

This commit is contained in:
António Regadas 2023-05-04 15:57:12 +01:00 committed by GitHub
parent c5954e73ec
commit 229906d09a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -11,7 +11,9 @@ import {
import { NETWORK_TO_NAME_MAP } from '../../../../shared/constants/network'; import { NETWORK_TO_NAME_MAP } from '../../../../shared/constants/network';
import { PageContainerFooter } from '../../ui/page-container'; import { PageContainerFooter } from '../../ui/page-container';
///: BEGIN:ONLY_INCLUDE_IN(build-main,build-beta,build-flask)
import Button from '../../ui/button'; import Button from '../../ui/button';
///: END:ONLY_INCLUDE_IN
import ActionableMessage from '../../ui/actionable-message/actionable-message'; import ActionableMessage from '../../ui/actionable-message/actionable-message';
import SenderToRecipient from '../../ui/sender-to-recipient'; import SenderToRecipient from '../../ui/sender-to-recipient';
@ -251,6 +253,7 @@ const ConfirmPageContainer = (props) => {
{t('insufficientCurrencyBuyOrDeposit', [ {t('insufficientCurrencyBuyOrDeposit', [
nativeCurrency, nativeCurrency,
networkName, networkName,
///: BEGIN:ONLY_INCLUDE_IN(build-main,build-beta,build-flask)
<Button <Button
type="inline" type="inline"
className="confirm-page-container-content__link" className="confirm-page-container-content__link"
@ -269,6 +272,7 @@ const ConfirmPageContainer = (props) => {
> >
{t('buyAsset', [nativeCurrency])} {t('buyAsset', [nativeCurrency])}
</Button>, </Button>,
///: END:ONLY_INCLUDE_IN
])} ])}
</Text> </Text>
) : ( ) : (

View File

@ -280,7 +280,6 @@ export const mapDispatchToProps = (dispatch) => {
updateTransactionGasFees: (gasFees) => { updateTransactionGasFees: (gasFees) => {
dispatch(updateGasFees({ ...gasFees, expectHexWei: true })); dispatch(updateGasFees({ ...gasFees, expectHexWei: true }));
}, },
showBuyModal: () => dispatch(showModal({ name: 'DEPOSIT_ETHER' })),
addToAddressBookIfNew: (newAddress, toAccounts, nickname = '') => { addToAddressBookIfNew: (newAddress, toAccounts, nickname = '') => {
const hexPrefixedAddress = addHexPrefix(newAddress); const hexPrefixedAddress = addHexPrefix(newAddress);
if (addressIsNew(toAccounts, hexPrefixedAddress)) { if (addressIsNew(toAccounts, hexPrefixedAddress)) {