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:
parent
c5954e73ec
commit
229906d09a
@ -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>
|
||||||
) : (
|
) : (
|
||||||
|
@ -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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user