2021-02-04 19:15:23 +01:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
2021-11-29 17:08:24 +01:00
|
|
|
|
2021-07-15 19:31:51 +02:00
|
|
|
import { EDIT_GAS_MODES } from '../../../../shared/constants/gas';
|
2021-11-10 03:07:10 +01:00
|
|
|
import { GasFeeContextProvider } from '../../../contexts/gasFee';
|
2022-09-21 16:15:34 +02:00
|
|
|
import {
|
2023-01-18 15:47:29 +01:00
|
|
|
TokenStandard,
|
|
|
|
TransactionType,
|
2022-09-21 16:15:34 +02:00
|
|
|
} from '../../../../shared/constants/transaction';
|
2022-03-25 15:02:08 +01:00
|
|
|
import { NETWORK_TO_NAME_MAP } from '../../../../shared/constants/network';
|
2021-11-29 17:08:24 +01:00
|
|
|
|
|
|
|
import { PageContainerFooter } from '../../ui/page-container';
|
2022-02-23 16:03:01 +01:00
|
|
|
import Button from '../../ui/button';
|
|
|
|
import ActionableMessage from '../../ui/actionable-message/actionable-message';
|
2021-11-29 17:08:24 +01:00
|
|
|
import SenderToRecipient from '../../ui/sender-to-recipient';
|
|
|
|
|
2021-11-23 18:46:33 +01:00
|
|
|
import AdvancedGasFeePopover from '../advanced-gas-fee-popover';
|
2021-11-29 17:08:24 +01:00
|
|
|
import EditGasFeePopover from '../edit-gas-fee-popover/edit-gas-fee-popover';
|
|
|
|
import EditGasPopover from '../edit-gas-popover';
|
2022-02-23 16:03:01 +01:00
|
|
|
import ErrorMessage from '../../ui/error-message';
|
|
|
|
import { INSUFFICIENT_FUNDS_ERROR_KEY } from '../../../helpers/constants/error-keys';
|
|
|
|
import Typography from '../../ui/typography';
|
|
|
|
import { TYPOGRAPHY } from '../../../helpers/constants/design-system';
|
2021-11-29 17:08:24 +01:00
|
|
|
|
2022-09-21 16:15:34 +02:00
|
|
|
import NetworkAccountBalanceHeader from '../network-account-balance-header/network-account-balance-header';
|
2022-11-09 16:36:21 +01:00
|
|
|
import DepositPopover from '../deposit-popover/deposit-popover';
|
2022-12-06 21:24:07 +01:00
|
|
|
import { fetchTokenBalance } from '../../../pages/swaps/swaps.util';
|
|
|
|
import SetApproveForAllWarning from '../set-approval-for-all-warning';
|
2020-11-03 00:41:28 +01:00
|
|
|
import {
|
|
|
|
ConfirmPageContainerHeader,
|
|
|
|
ConfirmPageContainerContent,
|
|
|
|
ConfirmPageContainerNavigation,
|
2021-02-04 19:15:23 +01:00
|
|
|
} from '.';
|
2018-06-23 08:52:45 +02:00
|
|
|
|
2021-09-07 23:12:56 +02:00
|
|
|
export default class ConfirmPageContainer extends Component {
|
2021-12-01 18:22:08 +01:00
|
|
|
state = {
|
2022-11-09 16:36:21 +01:00
|
|
|
setShowDepositPopover: false,
|
2022-12-06 21:24:07 +01:00
|
|
|
collectionBalance: 0,
|
2021-12-01 18:22:08 +01:00
|
|
|
};
|
|
|
|
|
2018-06-23 08:52:45 +02:00
|
|
|
static contextTypes = {
|
|
|
|
t: PropTypes.func,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2018-06-23 08:52:45 +02:00
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
// Header
|
|
|
|
action: PropTypes.string,
|
2018-07-06 20:58:41 +02:00
|
|
|
hideSubtitle: PropTypes.bool,
|
|
|
|
onEdit: PropTypes.func,
|
|
|
|
showEdit: PropTypes.bool,
|
2018-10-17 01:03:29 +02:00
|
|
|
subtitleComponent: PropTypes.node,
|
2018-06-23 08:52:45 +02:00
|
|
|
title: PropTypes.string,
|
2022-01-10 17:23:53 +01:00
|
|
|
image: PropTypes.string,
|
2018-10-17 01:03:29 +02:00
|
|
|
titleComponent: PropTypes.node,
|
2019-11-05 16:13:48 +01:00
|
|
|
hideSenderToRecipient: PropTypes.bool,
|
|
|
|
showAccountInHeader: PropTypes.bool,
|
2022-09-21 16:15:34 +02:00
|
|
|
accountBalance: PropTypes.string,
|
|
|
|
assetStandard: PropTypes.string,
|
2018-07-06 20:58:41 +02:00
|
|
|
// Sender to Recipient
|
|
|
|
fromAddress: PropTypes.string,
|
|
|
|
fromName: PropTypes.string,
|
|
|
|
toAddress: PropTypes.string,
|
|
|
|
toName: PropTypes.string,
|
2022-11-08 09:34:21 +01:00
|
|
|
toMetadataName: PropTypes.string,
|
2019-11-01 18:54:00 +01:00
|
|
|
toEns: PropTypes.string,
|
2019-08-08 20:45:30 +02:00
|
|
|
toNickname: PropTypes.string,
|
2022-12-15 17:33:59 +01:00
|
|
|
recipientIsOwnedAccount: PropTypes.bool,
|
2018-06-23 08:52:45 +02:00
|
|
|
// Content
|
|
|
|
contentComponent: PropTypes.node,
|
2018-07-06 20:58:41 +02:00
|
|
|
errorKey: PropTypes.string,
|
|
|
|
errorMessage: PropTypes.string,
|
2018-06-23 08:52:45 +02:00
|
|
|
dataComponent: PropTypes.node,
|
2021-12-01 18:22:08 +01:00
|
|
|
dataHexComponent: PropTypes.node,
|
2018-07-06 20:58:41 +02:00
|
|
|
detailsComponent: PropTypes.node,
|
2022-09-20 19:00:07 +02:00
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
|
|
|
insightComponent: PropTypes.node,
|
|
|
|
///: END:ONLY_INCLUDE_IN
|
2022-03-03 20:56:20 +01:00
|
|
|
tokenAddress: PropTypes.string,
|
2018-06-23 08:52:45 +02:00
|
|
|
nonce: PropTypes.string,
|
|
|
|
warning: PropTypes.string,
|
2018-09-20 02:48:28 +02:00
|
|
|
unapprovedTxCount: PropTypes.number,
|
2021-01-28 18:59:45 +01:00
|
|
|
origin: PropTypes.string.isRequired,
|
2021-04-28 20:02:01 +02:00
|
|
|
ethGasPriceWarning: PropTypes.string,
|
2022-04-25 19:34:44 +02:00
|
|
|
networkIdentifier: PropTypes.string,
|
2018-06-23 08:52:45 +02:00
|
|
|
// Footer
|
2018-09-20 02:48:28 +02:00
|
|
|
onCancelAll: PropTypes.func,
|
2018-06-23 08:52:45 +02:00
|
|
|
onCancel: PropTypes.func,
|
|
|
|
onSubmit: PropTypes.func,
|
2022-12-06 21:24:07 +01:00
|
|
|
onSetApprovalForAll: PropTypes.func,
|
|
|
|
showWarningModal: PropTypes.bool,
|
2018-08-03 23:44:57 +02:00
|
|
|
disabled: PropTypes.bool,
|
2021-07-08 22:23:00 +02:00
|
|
|
editingGas: PropTypes.bool,
|
|
|
|
handleCloseEditGas: PropTypes.func,
|
2021-07-12 21:35:54 +02:00
|
|
|
// Gas Popover
|
|
|
|
currentTransaction: PropTypes.object.isRequired,
|
2022-12-08 19:37:06 +01:00
|
|
|
supportsEIP1559: PropTypes.bool,
|
2022-02-23 16:03:01 +01:00
|
|
|
nativeCurrency: PropTypes.string,
|
2022-03-25 15:02:08 +01:00
|
|
|
isBuyableChain: PropTypes.bool,
|
2022-12-16 18:07:18 +01:00
|
|
|
isApprovalOrRejection: PropTypes.bool,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2018-06-23 08:52:45 +02:00
|
|
|
|
2022-12-06 21:24:07 +01:00
|
|
|
async componentDidMount() {
|
|
|
|
const { tokenAddress, fromAddress, currentTransaction, assetStandard } =
|
|
|
|
this.props;
|
|
|
|
const isSetApproveForAll =
|
2023-01-18 15:47:29 +01:00
|
|
|
currentTransaction.type === TransactionType.tokenMethodSetApprovalForAll;
|
2022-12-06 21:24:07 +01:00
|
|
|
|
2023-01-18 15:47:29 +01:00
|
|
|
if (isSetApproveForAll && assetStandard === TokenStandard.ERC721) {
|
2022-12-06 21:24:07 +01:00
|
|
|
const tokenBalance = await fetchTokenBalance(tokenAddress, fromAddress);
|
|
|
|
this.setState({
|
|
|
|
collectionBalance: tokenBalance?.balance?.words?.[0] || 0,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
render() {
|
2018-06-23 08:52:45 +02:00
|
|
|
const {
|
|
|
|
showEdit,
|
|
|
|
onEdit,
|
|
|
|
fromName,
|
|
|
|
fromAddress,
|
|
|
|
toName,
|
2022-11-08 09:34:21 +01:00
|
|
|
toMetadataName,
|
2019-11-01 18:54:00 +01:00
|
|
|
toEns,
|
2019-08-08 20:45:30 +02:00
|
|
|
toNickname,
|
2022-12-15 17:33:59 +01:00
|
|
|
recipientIsOwnedAccount,
|
2018-06-23 08:52:45 +02:00
|
|
|
toAddress,
|
2018-08-03 23:44:57 +02:00
|
|
|
disabled,
|
2018-07-06 20:58:41 +02:00
|
|
|
errorKey,
|
2018-06-23 08:52:45 +02:00
|
|
|
errorMessage,
|
|
|
|
contentComponent,
|
|
|
|
action,
|
|
|
|
title,
|
2022-01-10 17:23:53 +01:00
|
|
|
image,
|
2018-06-23 08:52:45 +02:00
|
|
|
titleComponent,
|
2018-10-17 01:03:29 +02:00
|
|
|
subtitleComponent,
|
2018-06-23 08:52:45 +02:00
|
|
|
hideSubtitle,
|
|
|
|
detailsComponent,
|
|
|
|
dataComponent,
|
2021-12-01 18:22:08 +01:00
|
|
|
dataHexComponent,
|
2018-09-20 02:48:28 +02:00
|
|
|
onCancelAll,
|
2018-06-23 08:52:45 +02:00
|
|
|
onCancel,
|
|
|
|
onSubmit,
|
2022-12-06 21:24:07 +01:00
|
|
|
onSetApprovalForAll,
|
|
|
|
showWarningModal,
|
2022-03-03 20:56:20 +01:00
|
|
|
tokenAddress,
|
2018-06-23 08:52:45 +02:00
|
|
|
nonce,
|
2018-09-20 02:48:28 +02:00
|
|
|
unapprovedTxCount,
|
2018-06-23 08:52:45 +02:00
|
|
|
warning,
|
2019-11-05 16:13:48 +01:00
|
|
|
hideSenderToRecipient,
|
|
|
|
showAccountInHeader,
|
2021-01-28 18:59:45 +01:00
|
|
|
origin,
|
2021-04-28 20:02:01 +02:00
|
|
|
ethGasPriceWarning,
|
2021-07-08 22:23:00 +02:00
|
|
|
editingGas,
|
|
|
|
handleCloseEditGas,
|
2021-07-12 21:35:54 +02:00
|
|
|
currentTransaction,
|
2022-12-08 19:37:06 +01:00
|
|
|
supportsEIP1559,
|
2022-02-23 16:03:01 +01:00
|
|
|
nativeCurrency,
|
2022-03-25 15:02:08 +01:00
|
|
|
isBuyableChain,
|
2022-04-25 19:34:44 +02:00
|
|
|
networkIdentifier,
|
2022-09-20 19:00:07 +02:00
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
|
|
|
insightComponent,
|
|
|
|
///: END:ONLY_INCLUDE_IN
|
2022-09-21 16:15:34 +02:00
|
|
|
accountBalance,
|
|
|
|
assetStandard,
|
2022-12-16 18:07:18 +01:00
|
|
|
isApprovalOrRejection,
|
2021-02-04 19:15:23 +01:00
|
|
|
} = this.props;
|
2018-06-23 08:52:45 +02:00
|
|
|
|
2021-11-03 16:13:31 +01:00
|
|
|
const shouldDisplayWarning =
|
|
|
|
contentComponent && disabled && (errorKey || errorMessage);
|
|
|
|
|
2021-11-05 10:12:23 +01:00
|
|
|
const hideTitle =
|
2023-01-18 15:47:29 +01:00
|
|
|
(currentTransaction.type === TransactionType.contractInteraction ||
|
|
|
|
currentTransaction.type === TransactionType.deployContract) &&
|
2021-11-05 10:12:23 +01:00
|
|
|
currentTransaction.txParams?.value === '0x0';
|
|
|
|
|
2022-04-25 19:34:44 +02:00
|
|
|
const networkName =
|
|
|
|
NETWORK_TO_NAME_MAP[currentTransaction.chainId] || networkIdentifier;
|
2022-02-23 16:03:01 +01:00
|
|
|
|
2022-08-10 16:54:44 +02:00
|
|
|
const isSetApproveForAll =
|
2023-01-18 15:47:29 +01:00
|
|
|
currentTransaction.type === TransactionType.tokenMethodSetApprovalForAll;
|
2022-08-10 16:54:44 +02:00
|
|
|
|
2022-11-09 16:36:21 +01:00
|
|
|
const { setShowDepositPopover } = this.state;
|
|
|
|
|
2022-02-23 16:03:01 +01:00
|
|
|
const { t } = this.context;
|
|
|
|
|
2018-06-23 08:52:45 +02:00
|
|
|
return (
|
2021-11-10 03:07:10 +01:00
|
|
|
<GasFeeContextProvider transaction={currentTransaction}>
|
2022-09-08 19:05:15 +02:00
|
|
|
<div className="page-container" data-testid="page-container">
|
2023-01-11 16:01:50 +01:00
|
|
|
<ConfirmPageContainerNavigation />
|
2023-01-18 15:47:29 +01:00
|
|
|
{assetStandard === TokenStandard.ERC20 ||
|
|
|
|
assetStandard === TokenStandard.ERC721 ||
|
|
|
|
assetStandard === TokenStandard.ERC1155 ? (
|
2022-09-21 16:15:34 +02:00
|
|
|
<NetworkAccountBalanceHeader
|
|
|
|
accountName={fromName}
|
|
|
|
accountBalance={accountBalance}
|
|
|
|
tokenName={nativeCurrency}
|
|
|
|
accountAddress={fromAddress}
|
|
|
|
networkName={networkName}
|
2022-10-25 17:03:45 +02:00
|
|
|
chainId={currentTransaction.chainId}
|
2022-09-21 16:15:34 +02:00
|
|
|
/>
|
|
|
|
) : (
|
|
|
|
<ConfirmPageContainerHeader
|
|
|
|
showEdit={showEdit}
|
|
|
|
onEdit={() => onEdit()}
|
|
|
|
showAccountInHeader={showAccountInHeader}
|
|
|
|
accountAddress={fromAddress}
|
|
|
|
>
|
|
|
|
{hideSenderToRecipient ? null : (
|
|
|
|
<SenderToRecipient
|
|
|
|
senderName={fromName}
|
|
|
|
senderAddress={fromAddress}
|
|
|
|
recipientName={toName}
|
2022-11-08 09:34:21 +01:00
|
|
|
recipientMetadataName={toMetadataName}
|
2022-09-21 16:15:34 +02:00
|
|
|
recipientAddress={toAddress}
|
|
|
|
recipientEns={toEns}
|
|
|
|
recipientNickname={toNickname}
|
2022-12-15 17:33:59 +01:00
|
|
|
recipientIsOwnedAccount={recipientIsOwnedAccount}
|
2022-09-21 16:15:34 +02:00
|
|
|
/>
|
|
|
|
)}
|
|
|
|
</ConfirmPageContainerHeader>
|
|
|
|
)}
|
2021-11-10 03:07:10 +01:00
|
|
|
{contentComponent || (
|
|
|
|
<ConfirmPageContainerContent
|
|
|
|
action={action}
|
|
|
|
title={title}
|
2022-01-10 17:23:53 +01:00
|
|
|
image={image}
|
2021-11-10 03:07:10 +01:00
|
|
|
titleComponent={titleComponent}
|
|
|
|
subtitleComponent={subtitleComponent}
|
|
|
|
hideSubtitle={hideSubtitle}
|
|
|
|
detailsComponent={detailsComponent}
|
|
|
|
dataComponent={dataComponent}
|
2021-12-01 18:22:08 +01:00
|
|
|
dataHexComponent={dataHexComponent}
|
2022-09-20 19:00:07 +02:00
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
|
|
|
insightComponent={insightComponent}
|
|
|
|
///: END:ONLY_INCLUDE_IN
|
2021-11-10 03:07:10 +01:00
|
|
|
errorMessage={errorMessage}
|
|
|
|
errorKey={errorKey}
|
2022-03-03 20:56:20 +01:00
|
|
|
tokenAddress={tokenAddress}
|
2021-11-10 03:07:10 +01:00
|
|
|
nonce={nonce}
|
|
|
|
warning={warning}
|
|
|
|
onCancelAll={onCancelAll}
|
|
|
|
onCancel={onCancel}
|
2022-02-23 16:03:01 +01:00
|
|
|
cancelText={t('reject')}
|
2021-11-10 03:07:10 +01:00
|
|
|
onSubmit={onSubmit}
|
2022-02-23 16:03:01 +01:00
|
|
|
submitText={t('confirm')}
|
2021-11-10 03:07:10 +01:00
|
|
|
disabled={disabled}
|
|
|
|
unapprovedTxCount={unapprovedTxCount}
|
2022-02-23 16:03:01 +01:00
|
|
|
rejectNText={t('rejectTxsN', [unapprovedTxCount])}
|
2021-11-10 03:07:10 +01:00
|
|
|
origin={origin}
|
|
|
|
ethGasPriceWarning={ethGasPriceWarning}
|
|
|
|
hideTitle={hideTitle}
|
2022-12-08 19:37:06 +01:00
|
|
|
supportsEIP1559={supportsEIP1559}
|
2022-02-23 16:03:01 +01:00
|
|
|
currentTransaction={currentTransaction}
|
|
|
|
nativeCurrency={nativeCurrency}
|
|
|
|
networkName={networkName}
|
2022-03-02 16:26:53 +01:00
|
|
|
toAddress={toAddress}
|
|
|
|
transactionType={currentTransaction.type}
|
2022-03-25 15:02:08 +01:00
|
|
|
isBuyableChain={isBuyableChain}
|
2018-06-23 08:52:45 +02:00
|
|
|
/>
|
2020-11-03 00:41:28 +01:00
|
|
|
)}
|
2022-02-23 16:03:01 +01:00
|
|
|
{shouldDisplayWarning && errorKey === INSUFFICIENT_FUNDS_ERROR_KEY && (
|
|
|
|
<div className="confirm-approve-content__warning">
|
2022-03-25 15:02:08 +01:00
|
|
|
<ActionableMessage
|
|
|
|
message={
|
|
|
|
isBuyableChain ? (
|
2022-02-23 16:03:01 +01:00
|
|
|
<Typography variant={TYPOGRAPHY.H7} align="left">
|
2022-03-25 15:02:08 +01:00
|
|
|
{t('insufficientCurrencyBuyOrDeposit', [
|
|
|
|
nativeCurrency,
|
|
|
|
networkName,
|
|
|
|
<Button
|
|
|
|
type="inline"
|
|
|
|
className="confirm-page-container-content__link"
|
2022-11-09 16:36:21 +01:00
|
|
|
onClick={() =>
|
|
|
|
this.setState({ setShowDepositPopover: true })
|
|
|
|
}
|
2022-03-25 15:02:08 +01:00
|
|
|
key={`${nativeCurrency}-buy-button`}
|
|
|
|
>
|
|
|
|
{t('buyAsset', [nativeCurrency])}
|
|
|
|
</Button>,
|
|
|
|
])}
|
2022-02-23 16:03:01 +01:00
|
|
|
</Typography>
|
2022-03-25 15:02:08 +01:00
|
|
|
) : (
|
|
|
|
<Typography variant={TYPOGRAPHY.H7} align="left">
|
|
|
|
{t('insufficientCurrencyDeposit', [
|
|
|
|
nativeCurrency,
|
|
|
|
networkName,
|
|
|
|
])}
|
2022-02-23 16:03:01 +01:00
|
|
|
</Typography>
|
2022-03-25 15:02:08 +01:00
|
|
|
)
|
|
|
|
}
|
|
|
|
useIcon
|
|
|
|
iconFillColor="var(--color-error-default)"
|
|
|
|
type="danger"
|
|
|
|
/>
|
2022-02-23 16:03:01 +01:00
|
|
|
</div>
|
|
|
|
)}
|
2022-11-09 16:36:21 +01:00
|
|
|
{setShowDepositPopover && (
|
|
|
|
<DepositPopover
|
|
|
|
onClose={() => this.setState({ setShowDepositPopover: false })}
|
|
|
|
/>
|
|
|
|
)}
|
2022-02-23 16:03:01 +01:00
|
|
|
{shouldDisplayWarning && errorKey !== INSUFFICIENT_FUNDS_ERROR_KEY && (
|
2021-11-10 03:07:10 +01:00
|
|
|
<div className="confirm-approve-content__warning">
|
|
|
|
<ErrorMessage errorKey={errorKey} />
|
|
|
|
</div>
|
|
|
|
)}
|
2022-12-06 21:24:07 +01:00
|
|
|
{showWarningModal && (
|
|
|
|
<SetApproveForAllWarning
|
|
|
|
collectionName={title}
|
|
|
|
senderAddress={fromAddress}
|
|
|
|
name={fromName}
|
2023-01-18 15:47:29 +01:00
|
|
|
isERC721={assetStandard === TokenStandard.ERC721}
|
2022-12-06 21:24:07 +01:00
|
|
|
total={this.state.collectionBalance}
|
|
|
|
onSubmit={onSubmit}
|
|
|
|
onCancel={onCancel}
|
|
|
|
/>
|
2022-08-10 16:54:44 +02:00
|
|
|
)}
|
2021-11-10 03:07:10 +01:00
|
|
|
{contentComponent && (
|
|
|
|
<PageContainerFooter
|
|
|
|
onCancel={onCancel}
|
2022-02-23 16:03:01 +01:00
|
|
|
cancelText={t('reject')}
|
2022-12-16 18:07:18 +01:00
|
|
|
onSubmit={
|
|
|
|
isSetApproveForAll && isApprovalOrRejection
|
|
|
|
? onSetApprovalForAll
|
|
|
|
: onSubmit
|
|
|
|
}
|
2022-02-23 16:03:01 +01:00
|
|
|
submitText={t('confirm')}
|
2022-08-10 16:54:44 +02:00
|
|
|
submitButtonType={
|
|
|
|
isSetApproveForAll ? 'danger-primary' : 'primary'
|
|
|
|
}
|
2021-11-10 03:07:10 +01:00
|
|
|
disabled={disabled}
|
2021-09-08 00:40:47 +02:00
|
|
|
>
|
2021-11-10 03:07:10 +01:00
|
|
|
{unapprovedTxCount > 1 && (
|
|
|
|
<a onClick={onCancelAll}>
|
2022-02-23 16:03:01 +01:00
|
|
|
{t('rejectTxsN', [unapprovedTxCount])}
|
2021-11-10 03:07:10 +01:00
|
|
|
</a>
|
|
|
|
)}
|
|
|
|
</PageContainerFooter>
|
|
|
|
)}
|
2022-12-08 19:37:06 +01:00
|
|
|
{editingGas && !supportsEIP1559 && (
|
2021-11-10 03:07:10 +01:00
|
|
|
<EditGasPopover
|
|
|
|
mode={EDIT_GAS_MODES.MODIFY_IN_PLACE}
|
|
|
|
onClose={handleCloseEditGas}
|
|
|
|
transaction={currentTransaction}
|
|
|
|
/>
|
2021-09-08 00:40:47 +02:00
|
|
|
)}
|
2022-12-08 19:37:06 +01:00
|
|
|
{supportsEIP1559 && (
|
2021-12-12 00:26:28 +01:00
|
|
|
<>
|
|
|
|
<EditGasFeePopover />
|
|
|
|
<AdvancedGasFeePopover />
|
|
|
|
</>
|
|
|
|
)}
|
2021-09-08 00:40:47 +02:00
|
|
|
</div>
|
2021-11-10 03:07:10 +01:00
|
|
|
</GasFeeContextProvider>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-06-23 08:52:45 +02:00
|
|
|
}
|
|
|
|
}
|