2021-02-04 19:15:23 +01:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import classnames from 'classnames';
|
2021-10-28 21:16:03 +02:00
|
|
|
import copyToClipboard from 'copy-to-clipboard';
|
|
|
|
import { getTokenTrackerLink, getAccountLink } from '@metamask/etherscan-link';
|
2021-05-11 20:55:21 +02:00
|
|
|
import UrlIcon from '../../../components/ui/url-icon';
|
2022-08-24 18:02:18 +02:00
|
|
|
import { addressSummary } from '../../../helpers/utils/util';
|
2021-02-04 19:15:23 +01:00
|
|
|
import { formatCurrency } from '../../../helpers/utils/confirm-tx.util';
|
2021-10-28 21:16:03 +02:00
|
|
|
import { ellipsify } from '../../send/send.utils';
|
2021-04-17 00:00:18 +02:00
|
|
|
import Typography from '../../../components/ui/typography';
|
2021-10-28 21:16:03 +02:00
|
|
|
import Box from '../../../components/ui/box';
|
|
|
|
import Button from '../../../components/ui/button';
|
2021-12-06 17:39:35 +01:00
|
|
|
import EditGasFeeButton from '../../../components/app/edit-gas-fee-button';
|
2021-10-28 21:16:03 +02:00
|
|
|
import Identicon from '../../../components/ui/identicon';
|
2021-11-29 17:53:37 +01:00
|
|
|
import MultiLayerFeeMessage from '../../../components/app/multilayer-fee-message';
|
2021-10-28 21:16:03 +02:00
|
|
|
import CopyIcon from '../../../components/ui/icon/copy-icon.component';
|
2021-04-17 00:00:18 +02:00
|
|
|
import {
|
|
|
|
TYPOGRAPHY,
|
|
|
|
FONT_WEIGHT,
|
|
|
|
BLOCK_SIZES,
|
|
|
|
JUSTIFY_CONTENT,
|
2021-10-28 21:16:03 +02:00
|
|
|
COLORS,
|
|
|
|
DISPLAY,
|
2021-04-17 00:00:18 +02:00
|
|
|
} from '../../../helpers/constants/design-system';
|
2021-10-28 21:16:03 +02:00
|
|
|
import { SECOND } from '../../../../shared/constants/time';
|
|
|
|
import { ConfirmPageContainerWarning } from '../../../components/app/confirm-page-container/confirm-page-container-content';
|
2022-01-06 23:40:31 +01:00
|
|
|
import GasDetailsItem from '../../../components/app/gas-details-item';
|
2021-10-21 21:17:03 +02:00
|
|
|
import LedgerInstructionField from '../../../components/app/ledger-instruction-field';
|
2022-07-19 18:07:13 +02:00
|
|
|
import {
|
|
|
|
ERC1155,
|
|
|
|
ERC20,
|
|
|
|
ERC721,
|
|
|
|
} from '../../../../shared/constants/transaction';
|
2022-09-14 16:55:31 +02:00
|
|
|
import { CHAIN_IDS, TEST_CHAINS } from '../../../../shared/constants/network';
|
2022-11-14 20:28:27 +01:00
|
|
|
import ContractDetailsModal from '../../../components/app/modals/contract-details-modal/contract-details-modal';
|
2019-11-05 16:13:48 +01:00
|
|
|
|
|
|
|
export default class ConfirmApproveContent extends Component {
|
|
|
|
static contextTypes = {
|
|
|
|
t: PropTypes.func,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2019-11-05 16:13:48 +01:00
|
|
|
|
|
|
|
static propTypes = {
|
2020-01-29 19:16:38 +01:00
|
|
|
decimals: PropTypes.number,
|
2019-11-05 16:13:48 +01:00
|
|
|
tokenAmount: PropTypes.string,
|
|
|
|
customTokenAmount: PropTypes.string,
|
|
|
|
tokenSymbol: PropTypes.string,
|
|
|
|
siteImage: PropTypes.string,
|
|
|
|
showCustomizeGasModal: PropTypes.func,
|
|
|
|
showEditApprovalPermissionModal: PropTypes.func,
|
|
|
|
origin: PropTypes.string,
|
|
|
|
setCustomAmount: PropTypes.func,
|
|
|
|
tokenBalance: PropTypes.string,
|
|
|
|
data: PropTypes.string,
|
|
|
|
toAddress: PropTypes.string,
|
2019-11-19 14:41:28 +01:00
|
|
|
currentCurrency: PropTypes.string,
|
2021-01-28 07:44:04 +01:00
|
|
|
nativeCurrency: PropTypes.string,
|
2019-11-05 16:13:48 +01:00
|
|
|
fiatTransactionTotal: PropTypes.string,
|
|
|
|
ethTransactionTotal: PropTypes.string,
|
2021-04-17 00:00:18 +02:00
|
|
|
useNonceField: PropTypes.bool,
|
|
|
|
customNonceValue: PropTypes.string,
|
|
|
|
updateCustomNonce: PropTypes.func,
|
|
|
|
getNextNonce: PropTypes.func,
|
|
|
|
nextNonce: PropTypes.number,
|
|
|
|
showCustomizeNonceModal: PropTypes.func,
|
|
|
|
warning: PropTypes.string,
|
2021-10-21 21:17:03 +02:00
|
|
|
txData: PropTypes.object,
|
2021-11-13 00:22:24 +01:00
|
|
|
fromAddressIsLedger: PropTypes.bool,
|
2021-10-28 21:16:03 +02:00
|
|
|
chainId: PropTypes.string,
|
2022-06-11 19:55:35 +02:00
|
|
|
tokenAddress: PropTypes.string,
|
2021-10-28 21:16:03 +02:00
|
|
|
rpcPrefs: PropTypes.object,
|
|
|
|
isContract: PropTypes.bool,
|
2021-11-29 17:53:37 +01:00
|
|
|
hexTransactionTotal: PropTypes.string,
|
|
|
|
isMultiLayerFeeNetwork: PropTypes.bool,
|
2021-12-06 17:39:35 +01:00
|
|
|
supportsEIP1559V2: PropTypes.bool,
|
2022-03-09 15:38:12 +01:00
|
|
|
assetName: PropTypes.string,
|
|
|
|
tokenId: PropTypes.string,
|
|
|
|
assetStandard: PropTypes.string,
|
2022-07-12 01:32:55 +02:00
|
|
|
isSetApproveForAll: PropTypes.bool,
|
2022-10-04 20:37:11 +02:00
|
|
|
isApprovalOrRejection: PropTypes.bool,
|
2022-07-21 21:39:55 +02:00
|
|
|
userAddress: PropTypes.string,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2019-11-05 16:13:48 +01:00
|
|
|
|
|
|
|
state = {
|
2022-09-06 15:36:02 +02:00
|
|
|
showFullTxDetails: false,
|
2021-10-28 21:16:03 +02:00
|
|
|
copied: false,
|
2022-11-14 20:28:27 +01:00
|
|
|
setshowContractDetails: false,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2019-11-05 16:13:48 +01:00
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
renderApproveContentCard({
|
2021-04-17 00:00:18 +02:00
|
|
|
showHeader = true,
|
2019-11-05 16:13:48 +01:00
|
|
|
symbol,
|
|
|
|
title,
|
|
|
|
showEdit,
|
2021-12-06 17:39:35 +01:00
|
|
|
showAdvanceGasFeeOptions = false,
|
2019-11-05 16:13:48 +01:00
|
|
|
onEditClick,
|
|
|
|
content,
|
|
|
|
footer,
|
|
|
|
noBorder,
|
|
|
|
}) {
|
2021-12-06 17:39:35 +01:00
|
|
|
const { supportsEIP1559V2 } = this.props;
|
2021-04-17 00:00:18 +02:00
|
|
|
const { t } = this.context;
|
2019-11-05 16:13:48 +01:00
|
|
|
return (
|
2019-12-03 17:35:44 +01:00
|
|
|
<div
|
|
|
|
className={classnames({
|
|
|
|
'confirm-approve-content__card': !noBorder,
|
|
|
|
'confirm-approve-content__card--no-border': noBorder,
|
|
|
|
})}
|
|
|
|
>
|
2021-04-17 00:00:18 +02:00
|
|
|
{showHeader && (
|
|
|
|
<div className="confirm-approve-content__card-header">
|
2022-07-14 20:22:12 +02:00
|
|
|
{supportsEIP1559V2 && title === t('transactionFee') ? null : (
|
2022-01-06 23:40:31 +01:00
|
|
|
<>
|
|
|
|
<div className="confirm-approve-content__card-header__symbol">
|
|
|
|
{symbol}
|
|
|
|
</div>
|
|
|
|
<div className="confirm-approve-content__card-header__title">
|
|
|
|
{title}
|
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
)}
|
2021-12-06 17:39:35 +01:00
|
|
|
{showEdit && (!showAdvanceGasFeeOptions || !supportsEIP1559V2) && (
|
2021-04-17 00:00:18 +02:00
|
|
|
<Box width={BLOCK_SIZES.ONE_SIXTH}>
|
|
|
|
<Button
|
|
|
|
type="link"
|
|
|
|
className="confirm-approve-content__small-blue-text"
|
|
|
|
onClick={() => onEditClick()}
|
|
|
|
>
|
|
|
|
{t('edit')}
|
|
|
|
</Button>
|
|
|
|
</Box>
|
|
|
|
)}
|
2021-12-06 17:39:35 +01:00
|
|
|
{showEdit && showAdvanceGasFeeOptions && supportsEIP1559V2 && (
|
|
|
|
<EditGasFeeButton />
|
|
|
|
)}
|
2021-04-17 00:00:18 +02:00
|
|
|
</div>
|
|
|
|
)}
|
2020-11-03 00:41:28 +01:00
|
|
|
<div className="confirm-approve-content__card-content">{content}</div>
|
|
|
|
{footer}
|
2019-11-05 16:13:48 +01:00
|
|
|
</div>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2019-11-05 16:13:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: Add "Learn Why" with link to the feeAssociatedRequest text
|
2020-11-03 00:41:28 +01:00
|
|
|
renderTransactionDetailsContent() {
|
2021-02-04 19:15:23 +01:00
|
|
|
const { t } = this.context;
|
2019-11-05 16:13:48 +01:00
|
|
|
const {
|
2019-11-19 14:41:28 +01:00
|
|
|
currentCurrency,
|
2021-01-28 07:44:04 +01:00
|
|
|
nativeCurrency,
|
2019-11-05 16:13:48 +01:00
|
|
|
ethTransactionTotal,
|
|
|
|
fiatTransactionTotal,
|
2021-11-29 17:53:37 +01:00
|
|
|
hexTransactionTotal,
|
|
|
|
txData,
|
|
|
|
isMultiLayerFeeNetwork,
|
2022-01-06 23:40:31 +01:00
|
|
|
supportsEIP1559V2,
|
2021-02-04 19:15:23 +01:00
|
|
|
} = this.props;
|
2022-01-06 23:40:31 +01:00
|
|
|
if (!isMultiLayerFeeNetwork && supportsEIP1559V2) {
|
|
|
|
return <GasDetailsItem />;
|
|
|
|
}
|
2019-11-05 16:13:48 +01:00
|
|
|
return (
|
|
|
|
<div className="confirm-approve-content__transaction-details-content">
|
2021-11-29 17:53:37 +01:00
|
|
|
{isMultiLayerFeeNetwork ? (
|
|
|
|
<div className="confirm-approve-content__transaction-details-extra-content">
|
|
|
|
<div className="confirm-approve-content__transaction-details-content__labelled-fee">
|
|
|
|
<span>{t('transactionDetailLayer2GasHeading')}</span>
|
|
|
|
{`${ethTransactionTotal} ${nativeCurrency}`}
|
|
|
|
</div>
|
|
|
|
<MultiLayerFeeMessage
|
|
|
|
transaction={txData}
|
|
|
|
layer2fee={hexTransactionTotal}
|
|
|
|
nativeCurrency={nativeCurrency}
|
|
|
|
plainStyle
|
|
|
|
/>
|
2019-11-05 16:13:48 +01:00
|
|
|
</div>
|
2021-11-29 17:53:37 +01:00
|
|
|
) : (
|
|
|
|
<>
|
|
|
|
<div className="confirm-approve-content__small-text">
|
|
|
|
{t('feeAssociatedRequest')}
|
|
|
|
</div>
|
|
|
|
<div className="confirm-approve-content__transaction-details-content__fee">
|
|
|
|
<div className="confirm-approve-content__transaction-details-content__primary-fee">
|
|
|
|
{formatCurrency(fiatTransactionTotal, currentCurrency)}
|
|
|
|
</div>
|
|
|
|
<div className="confirm-approve-content__transaction-details-content__secondary-fee">
|
|
|
|
{`${ethTransactionTotal} ${nativeCurrency}`}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
)}
|
2019-11-05 16:13:48 +01:00
|
|
|
</div>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2019-11-05 16:13:48 +01:00
|
|
|
}
|
|
|
|
|
2022-03-09 15:38:12 +01:00
|
|
|
renderERC721OrERC1155PermissionContent() {
|
|
|
|
const { t } = this.context;
|
2022-07-12 01:32:55 +02:00
|
|
|
const { origin, toAddress, isContract, isSetApproveForAll } = this.props;
|
2022-06-11 19:55:35 +02:00
|
|
|
|
|
|
|
const titleTokenDescription = this.getTitleTokenDescription();
|
2022-03-09 15:38:12 +01:00
|
|
|
|
|
|
|
const displayedAddress = isContract
|
|
|
|
? `${t('contract')} (${addressSummary(toAddress)})`
|
|
|
|
: addressSummary(toAddress);
|
|
|
|
return (
|
|
|
|
<div className="flex-column">
|
|
|
|
<div className="confirm-approve-content__small-text">
|
|
|
|
{t('accessAndSpendNoticeNFT', [origin])}
|
|
|
|
</div>
|
|
|
|
<div className="flex-row">
|
|
|
|
<div className="confirm-approve-content__label">
|
|
|
|
{t('approvedAsset')}:
|
|
|
|
</div>
|
|
|
|
<div className="confirm-approve-content__medium-text">
|
2022-07-12 01:32:55 +02:00
|
|
|
{isSetApproveForAll
|
2022-07-20 22:54:50 +02:00
|
|
|
? t('allOfYour', [titleTokenDescription])
|
2022-07-12 01:32:55 +02:00
|
|
|
: titleTokenDescription}
|
2022-03-09 15:38:12 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="flex-row">
|
|
|
|
<div className="confirm-approve-content__label">
|
|
|
|
{t('grantedToWithColon')}
|
|
|
|
</div>
|
|
|
|
<div className="confirm-approve-content__medium-text">
|
|
|
|
{displayedAddress}
|
|
|
|
</div>
|
|
|
|
<div className="confirm-approve-content__medium-text">
|
|
|
|
<Button
|
|
|
|
type="link"
|
|
|
|
className="confirm-approve-content__copy-address"
|
|
|
|
onClick={() => {
|
|
|
|
this.setState({ copied: true });
|
|
|
|
this.copyTimeout = setTimeout(
|
|
|
|
() => this.setState({ copied: false }),
|
|
|
|
SECOND * 3,
|
|
|
|
);
|
|
|
|
copyToClipboard(toAddress);
|
|
|
|
}}
|
|
|
|
title={
|
|
|
|
this.state.copied
|
|
|
|
? t('copiedExclamation')
|
|
|
|
: t('copyToClipboard')
|
|
|
|
}
|
|
|
|
>
|
2022-03-25 20:40:45 +01:00
|
|
|
<CopyIcon size={14} color="var(--color-icon-default)" />
|
2022-03-09 15:38:12 +01:00
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
renderERC20PermissionContent() {
|
2021-02-04 19:15:23 +01:00
|
|
|
const { t } = this.context;
|
2020-11-03 00:41:28 +01:00
|
|
|
const {
|
|
|
|
customTokenAmount,
|
|
|
|
tokenAmount,
|
|
|
|
tokenSymbol,
|
|
|
|
origin,
|
|
|
|
toAddress,
|
2021-11-02 23:15:05 +01:00
|
|
|
isContract,
|
2021-02-04 19:15:23 +01:00
|
|
|
} = this.props;
|
2022-03-09 15:38:12 +01:00
|
|
|
|
2021-11-02 23:15:05 +01:00
|
|
|
const displayedAddress = isContract
|
|
|
|
? `${t('contract')} (${addressSummary(toAddress)})`
|
|
|
|
: addressSummary(toAddress);
|
2019-11-05 16:13:48 +01:00
|
|
|
return (
|
|
|
|
<div className="flex-column">
|
2020-11-03 00:41:28 +01:00
|
|
|
<div className="confirm-approve-content__small-text">
|
|
|
|
{t('accessAndSpendNotice', [origin])}
|
|
|
|
</div>
|
2019-11-05 16:13:48 +01:00
|
|
|
<div className="flex-row">
|
2020-11-03 00:41:28 +01:00
|
|
|
<div className="confirm-approve-content__label">
|
2021-11-02 23:15:05 +01:00
|
|
|
{t('approvedAmountWithColon')}
|
2020-11-03 00:41:28 +01:00
|
|
|
</div>
|
|
|
|
<div className="confirm-approve-content__medium-text">
|
|
|
|
{`${Number(customTokenAmount || tokenAmount)} ${tokenSymbol}`}
|
|
|
|
</div>
|
2019-11-05 16:13:48 +01:00
|
|
|
</div>
|
|
|
|
<div className="flex-row">
|
2020-11-03 00:41:28 +01:00
|
|
|
<div className="confirm-approve-content__label">
|
2021-11-02 23:15:05 +01:00
|
|
|
{t('grantedToWithColon')}
|
|
|
|
</div>
|
|
|
|
<div className="confirm-approve-content__medium-text">
|
|
|
|
{`${displayedAddress}`}
|
2020-11-03 00:41:28 +01:00
|
|
|
</div>
|
|
|
|
<div className="confirm-approve-content__medium-text">
|
2021-11-02 23:15:05 +01:00
|
|
|
<Button
|
|
|
|
type="link"
|
|
|
|
className="confirm-approve-content__copy-address"
|
|
|
|
onClick={() => {
|
|
|
|
this.setState({ copied: true });
|
|
|
|
this.copyTimeout = setTimeout(
|
|
|
|
() => this.setState({ copied: false }),
|
|
|
|
SECOND * 3,
|
|
|
|
);
|
|
|
|
copyToClipboard(toAddress);
|
|
|
|
}}
|
|
|
|
title={
|
|
|
|
this.state.copied
|
|
|
|
? t('copiedExclamation')
|
|
|
|
: t('copyToClipboard')
|
|
|
|
}
|
|
|
|
>
|
2022-03-25 20:40:45 +01:00
|
|
|
<CopyIcon size={14} color="var(--color-icon-default)" />
|
2021-11-02 23:15:05 +01:00
|
|
|
</Button>
|
2020-11-03 00:41:28 +01:00
|
|
|
</div>
|
2019-11-05 16:13:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2019-11-05 16:13:48 +01:00
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
renderDataContent() {
|
2021-02-04 19:15:23 +01:00
|
|
|
const { t } = this.context;
|
2022-10-04 20:37:11 +02:00
|
|
|
const { data, isSetApproveForAll, isApprovalOrRejection } = this.props;
|
2019-11-05 16:13:48 +01:00
|
|
|
return (
|
|
|
|
<div className="flex-column">
|
2020-11-03 00:41:28 +01:00
|
|
|
<div className="confirm-approve-content__small-text">
|
2022-07-12 01:32:55 +02:00
|
|
|
{isSetApproveForAll
|
|
|
|
? t('functionSetApprovalForAll')
|
|
|
|
: t('functionApprove')}
|
2020-11-03 00:41:28 +01:00
|
|
|
</div>
|
2022-10-04 20:37:11 +02:00
|
|
|
{isSetApproveForAll && isApprovalOrRejection !== undefined ? (
|
2022-07-12 01:32:55 +02:00
|
|
|
<div className="confirm-approve-content__small-text">
|
2022-10-04 20:37:11 +02:00
|
|
|
{`${t('parameters')}: ${isApprovalOrRejection}`}
|
2022-07-12 01:32:55 +02:00
|
|
|
</div>
|
|
|
|
) : null}
|
2020-11-03 00:41:28 +01:00
|
|
|
<div className="confirm-approve-content__small-text confirm-approve-content__data__data-block">
|
|
|
|
{data}
|
|
|
|
</div>
|
2019-11-05 16:13:48 +01:00
|
|
|
</div>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2019-11-05 16:13:48 +01:00
|
|
|
}
|
|
|
|
|
2022-03-09 15:38:12 +01:00
|
|
|
renderFullDetails() {
|
|
|
|
const { t } = this.context;
|
|
|
|
const {
|
|
|
|
assetStandard,
|
|
|
|
showEditApprovalPermissionModal,
|
|
|
|
customTokenAmount,
|
|
|
|
tokenAmount,
|
|
|
|
decimals,
|
|
|
|
origin,
|
|
|
|
setCustomAmount,
|
|
|
|
tokenSymbol,
|
|
|
|
tokenBalance,
|
|
|
|
} = this.props;
|
|
|
|
if (assetStandard === ERC20) {
|
|
|
|
return (
|
|
|
|
<div className="confirm-approve-content__full-tx-content">
|
|
|
|
<div className="confirm-approve-content__permission">
|
|
|
|
{this.renderApproveContentCard({
|
2022-03-25 20:40:45 +01:00
|
|
|
symbol: <i className="fa fa-user-check" />,
|
2022-03-09 15:38:12 +01:00
|
|
|
title: t('permissionRequest'),
|
|
|
|
content: this.renderERC20PermissionContent(),
|
|
|
|
showEdit: true,
|
|
|
|
onEditClick: () =>
|
|
|
|
showEditApprovalPermissionModal({
|
|
|
|
customTokenAmount,
|
|
|
|
decimals,
|
|
|
|
origin,
|
|
|
|
setCustomAmount,
|
|
|
|
tokenAmount,
|
|
|
|
tokenSymbol,
|
|
|
|
tokenBalance,
|
|
|
|
}),
|
|
|
|
})}
|
|
|
|
</div>
|
|
|
|
<div className="confirm-approve-content__data">
|
|
|
|
{this.renderApproveContentCard({
|
|
|
|
symbol: <i className="fa fa-file" />,
|
|
|
|
title: 'Data',
|
|
|
|
content: this.renderDataContent(),
|
|
|
|
noBorder: true,
|
|
|
|
})}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
} else if (assetStandard === ERC721 || assetStandard === ERC1155) {
|
|
|
|
return (
|
|
|
|
<div className="confirm-approve-content__full-tx-content">
|
|
|
|
<div className="confirm-approve-content__permission">
|
|
|
|
{this.renderApproveContentCard({
|
2022-03-25 20:40:45 +01:00
|
|
|
symbol: <i className="fas fa-user-check" />,
|
2022-03-09 15:38:12 +01:00
|
|
|
title: t('permissionRequest'),
|
|
|
|
content: this.renderERC721OrERC1155PermissionContent(),
|
|
|
|
showEdit: false,
|
|
|
|
})}
|
|
|
|
</div>
|
|
|
|
<div className="confirm-approve-content__data">
|
|
|
|
{this.renderApproveContentCard({
|
|
|
|
symbol: <i className="fa fa-file" />,
|
|
|
|
title: t('data'),
|
|
|
|
content: this.renderDataContent(),
|
|
|
|
noBorder: true,
|
|
|
|
})}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2021-04-17 00:00:18 +02:00
|
|
|
renderCustomNonceContent() {
|
|
|
|
const { t } = this.context;
|
|
|
|
const {
|
|
|
|
useNonceField,
|
|
|
|
customNonceValue,
|
|
|
|
updateCustomNonce,
|
|
|
|
getNextNonce,
|
|
|
|
nextNonce,
|
|
|
|
showCustomizeNonceModal,
|
|
|
|
} = this.props;
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
{useNonceField && (
|
|
|
|
<div className="confirm-approve-content__custom-nonce-content">
|
|
|
|
<Box
|
|
|
|
className="confirm-approve-content__custom-nonce-header"
|
|
|
|
justifyContent={JUSTIFY_CONTENT.FLEX_START}
|
|
|
|
>
|
|
|
|
<Typography
|
|
|
|
variant={TYPOGRAPHY.H6}
|
|
|
|
fontWeight={FONT_WEIGHT.NORMAL}
|
|
|
|
>
|
|
|
|
{t('nonce')}
|
|
|
|
</Typography>
|
|
|
|
<Button
|
|
|
|
type="link"
|
|
|
|
className="confirm-approve-content__custom-nonce-edit"
|
|
|
|
onClick={() =>
|
|
|
|
showCustomizeNonceModal({
|
|
|
|
nextNonce,
|
|
|
|
customNonceValue,
|
|
|
|
updateCustomNonce,
|
|
|
|
getNextNonce,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
>
|
|
|
|
{t('edit')}
|
|
|
|
</Button>
|
|
|
|
</Box>
|
|
|
|
<Typography
|
|
|
|
className="confirm-approve-content__custom-nonce-value"
|
|
|
|
variant={TYPOGRAPHY.H6}
|
|
|
|
fontWeight={FONT_WEIGHT.BOLD}
|
|
|
|
>
|
|
|
|
{customNonceValue || nextNonce}
|
|
|
|
</Typography>
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2022-12-06 21:24:07 +01:00
|
|
|
getTokenName() {
|
2022-06-11 19:55:35 +02:00
|
|
|
const {
|
|
|
|
tokenId,
|
|
|
|
assetName,
|
|
|
|
assetStandard,
|
|
|
|
tokenSymbol,
|
2022-07-20 20:42:57 +02:00
|
|
|
isSetApproveForAll,
|
2022-06-11 19:55:35 +02:00
|
|
|
} = this.props;
|
|
|
|
const { t } = this.context;
|
|
|
|
|
2022-08-02 20:38:15 +02:00
|
|
|
let titleTokenDescription = t('token');
|
2022-07-20 20:42:57 +02:00
|
|
|
if (
|
|
|
|
assetStandard === ERC20 ||
|
|
|
|
(tokenSymbol && !tokenId && !isSetApproveForAll)
|
|
|
|
) {
|
2022-06-11 19:55:35 +02:00
|
|
|
titleTokenDescription = tokenSymbol;
|
|
|
|
} else if (
|
|
|
|
assetStandard === ERC721 ||
|
|
|
|
assetStandard === ERC1155 ||
|
|
|
|
// if we don't have an asset standard but we do have either both an assetname and a tokenID or both a tokenSymbol and tokenId we assume its an NFT
|
|
|
|
(assetName && tokenId) ||
|
|
|
|
(tokenSymbol && tokenId)
|
|
|
|
) {
|
|
|
|
if (assetName || tokenSymbol) {
|
2022-08-02 20:38:15 +02:00
|
|
|
titleTokenDescription = `${assetName ?? tokenSymbol}`;
|
2022-06-11 19:55:35 +02:00
|
|
|
} else {
|
2022-08-02 20:38:15 +02:00
|
|
|
titleTokenDescription = t('nft');
|
|
|
|
}
|
2022-12-06 21:24:07 +01:00
|
|
|
}
|
2022-08-02 20:38:15 +02:00
|
|
|
|
2022-12-06 21:24:07 +01:00
|
|
|
return titleTokenDescription;
|
|
|
|
}
|
|
|
|
|
|
|
|
getTitleTokenDescription() {
|
|
|
|
const { tokenId, tokenAddress, rpcPrefs, chainId, userAddress } =
|
|
|
|
this.props;
|
|
|
|
const useBlockExplorer =
|
|
|
|
rpcPrefs?.blockExplorerUrl ||
|
|
|
|
[...TEST_CHAINS, CHAIN_IDS.MAINNET].includes(chainId);
|
|
|
|
|
|
|
|
const titleTokenDescription = this.getTokenName();
|
|
|
|
const tokenIdWrapped = tokenId ? ` (#${tokenId})` : '';
|
|
|
|
|
|
|
|
if (useBlockExplorer) {
|
|
|
|
const blockExplorerLink = getTokenTrackerLink(
|
|
|
|
tokenAddress,
|
|
|
|
chainId,
|
|
|
|
null,
|
|
|
|
userAddress,
|
|
|
|
{
|
|
|
|
blockExplorerUrl: rpcPrefs?.blockExplorerUrl ?? null,
|
|
|
|
},
|
|
|
|
);
|
|
|
|
const blockExplorerElement = (
|
|
|
|
<>
|
|
|
|
<a
|
|
|
|
href={blockExplorerLink}
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
title={tokenAddress}
|
|
|
|
className="confirm-approve-content__approval-asset-link"
|
|
|
|
>
|
|
|
|
{titleTokenDescription}
|
|
|
|
</a>
|
|
|
|
{tokenIdWrapped && <span>{tokenIdWrapped}</span>}
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
return blockExplorerElement;
|
2022-06-11 19:55:35 +02:00
|
|
|
}
|
|
|
|
|
2022-08-02 20:38:15 +02:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<span
|
|
|
|
className="confirm-approve-content__approval-asset-title"
|
|
|
|
onClick={() => {
|
|
|
|
copyToClipboard(tokenAddress);
|
|
|
|
}}
|
|
|
|
title={tokenAddress}
|
|
|
|
>
|
|
|
|
{titleTokenDescription}
|
|
|
|
</span>
|
|
|
|
{tokenIdWrapped && <span>{tokenIdWrapped}</span>}
|
|
|
|
</>
|
|
|
|
);
|
2022-06-11 19:55:35 +02:00
|
|
|
}
|
|
|
|
|
2022-07-12 01:32:55 +02:00
|
|
|
renderTitle() {
|
|
|
|
const { t } = this.context;
|
2022-12-05 17:59:15 +01:00
|
|
|
const {
|
|
|
|
assetName,
|
|
|
|
tokenId,
|
|
|
|
tokenSymbol,
|
|
|
|
assetStandard,
|
|
|
|
isSetApproveForAll,
|
|
|
|
isApprovalOrRejection,
|
|
|
|
} = this.props;
|
2022-07-12 01:32:55 +02:00
|
|
|
const titleTokenDescription = this.getTitleTokenDescription();
|
|
|
|
|
|
|
|
let title;
|
|
|
|
|
|
|
|
if (isSetApproveForAll) {
|
|
|
|
title = t('approveAllTokensTitle', [titleTokenDescription]);
|
2022-10-04 20:37:11 +02:00
|
|
|
if (isApprovalOrRejection === false) {
|
2022-07-12 01:32:55 +02:00
|
|
|
title = t('revokeAllTokensTitle', [titleTokenDescription]);
|
|
|
|
}
|
2022-12-05 17:59:15 +01:00
|
|
|
} else if (
|
|
|
|
assetStandard === ERC721 ||
|
|
|
|
assetStandard === ERC1155 ||
|
|
|
|
// if we don't have an asset standard but we do have either both an assetname and a tokenID or both a tokenSymbol and tokenId we assume its an NFT
|
|
|
|
(assetName && tokenId) ||
|
|
|
|
(tokenSymbol && tokenId)
|
|
|
|
) {
|
|
|
|
title = t('approveTokenTitle', [titleTokenDescription]);
|
2022-07-12 01:32:55 +02:00
|
|
|
}
|
|
|
|
return title || t('allowSpendToken', [titleTokenDescription]);
|
|
|
|
}
|
|
|
|
|
|
|
|
renderDescription() {
|
|
|
|
const { t } = this.context;
|
2022-12-05 17:59:15 +01:00
|
|
|
const {
|
|
|
|
assetStandard,
|
|
|
|
assetName,
|
|
|
|
tokenId,
|
|
|
|
tokenSymbol,
|
|
|
|
isContract,
|
|
|
|
isSetApproveForAll,
|
|
|
|
isApprovalOrRejection,
|
|
|
|
} = this.props;
|
2022-07-12 01:32:55 +02:00
|
|
|
const grantee = isContract
|
|
|
|
? t('contract').toLowerCase()
|
|
|
|
: t('account').toLowerCase();
|
|
|
|
|
|
|
|
let description = t('trustSiteApprovePermission', [grantee]);
|
|
|
|
|
2022-10-04 20:37:11 +02:00
|
|
|
if (isSetApproveForAll && isApprovalOrRejection === false) {
|
2022-07-12 01:32:55 +02:00
|
|
|
description = t('revokeApproveForAllDescription', [
|
|
|
|
grantee,
|
|
|
|
this.getTitleTokenDescription(),
|
|
|
|
]);
|
2022-12-05 17:59:15 +01:00
|
|
|
} else if (
|
|
|
|
isSetApproveForAll ||
|
|
|
|
assetStandard === ERC721 ||
|
|
|
|
assetStandard === ERC1155 ||
|
|
|
|
// if we don't have an asset standard but we do have either both an assetname and a tokenID or both a tokenSymbol and tokenId we assume its an NFT
|
|
|
|
(assetName && tokenId) ||
|
|
|
|
(tokenSymbol && tokenId)
|
|
|
|
) {
|
|
|
|
description = t('approveTokenDescription');
|
2022-07-12 01:32:55 +02:00
|
|
|
}
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
render() {
|
2021-02-04 19:15:23 +01:00
|
|
|
const { t } = this.context;
|
2019-11-05 16:13:48 +01:00
|
|
|
const {
|
2020-01-29 19:16:38 +01:00
|
|
|
decimals,
|
2019-11-05 16:13:48 +01:00
|
|
|
siteImage,
|
|
|
|
tokenAmount,
|
|
|
|
customTokenAmount,
|
|
|
|
origin,
|
|
|
|
tokenSymbol,
|
|
|
|
showCustomizeGasModal,
|
|
|
|
showEditApprovalPermissionModal,
|
|
|
|
setCustomAmount,
|
|
|
|
tokenBalance,
|
2021-04-17 00:00:18 +02:00
|
|
|
useNonceField,
|
|
|
|
warning,
|
2021-10-21 21:17:03 +02:00
|
|
|
txData,
|
2021-11-13 00:22:24 +01:00
|
|
|
fromAddressIsLedger,
|
2021-10-28 21:16:03 +02:00
|
|
|
toAddress,
|
|
|
|
chainId,
|
|
|
|
rpcPrefs,
|
|
|
|
isContract,
|
2022-03-09 15:38:12 +01:00
|
|
|
assetStandard,
|
2022-07-21 21:39:55 +02:00
|
|
|
userAddress,
|
2022-11-14 20:28:27 +01:00
|
|
|
tokenId,
|
|
|
|
tokenAddress,
|
|
|
|
assetName,
|
2022-12-05 17:59:15 +01:00
|
|
|
isSetApproveForAll,
|
2021-02-04 19:15:23 +01:00
|
|
|
} = this.props;
|
2022-11-14 20:28:27 +01:00
|
|
|
const { showFullTxDetails, setshowContractDetails } = this.state;
|
2019-11-05 16:13:48 +01:00
|
|
|
|
|
|
|
return (
|
2019-12-03 17:35:44 +01:00
|
|
|
<div
|
|
|
|
className={classnames('confirm-approve-content', {
|
|
|
|
'confirm-approve-content--full': showFullTxDetails,
|
|
|
|
})}
|
|
|
|
>
|
2021-04-17 00:00:18 +02:00
|
|
|
{warning && (
|
|
|
|
<div className="confirm-approve-content__custom-nonce-warning">
|
|
|
|
<ConfirmPageContainerWarning warning={warning} />
|
|
|
|
</div>
|
|
|
|
)}
|
2021-10-28 21:16:03 +02:00
|
|
|
<Box
|
|
|
|
display={DISPLAY.FLEX}
|
|
|
|
className="confirm-approve-content__icon-display-content"
|
|
|
|
>
|
2022-08-24 18:02:18 +02:00
|
|
|
<Box display={DISPLAY.FLEX}>
|
2021-10-28 21:16:03 +02:00
|
|
|
<UrlIcon
|
|
|
|
className="confirm-approve-content__siteimage-identicon"
|
|
|
|
fallbackClassName="confirm-approve-content__siteimage-identicon"
|
2022-08-24 18:02:18 +02:00
|
|
|
name={origin}
|
2021-10-28 21:16:03 +02:00
|
|
|
url={siteImage}
|
|
|
|
/>
|
|
|
|
<Typography
|
|
|
|
variant={TYPOGRAPHY.H6}
|
|
|
|
fontWeight={FONT_WEIGHT.NORMAL}
|
2022-03-09 16:24:53 +01:00
|
|
|
color={COLORS.TEXT_ALTERNATIVE}
|
2021-10-28 21:16:03 +02:00
|
|
|
boxProps={{ marginLeft: 1, marginTop: 2 }}
|
|
|
|
>
|
2022-08-24 18:02:18 +02:00
|
|
|
{origin}
|
2021-10-28 21:16:03 +02:00
|
|
|
</Typography>
|
|
|
|
</Box>
|
|
|
|
</Box>
|
2022-08-02 20:38:15 +02:00
|
|
|
<div
|
|
|
|
className="confirm-approve-content__title"
|
|
|
|
data-testid="confirm-approve-title"
|
|
|
|
>
|
2022-07-12 01:32:55 +02:00
|
|
|
{this.renderTitle()}
|
2019-11-05 16:13:48 +01:00
|
|
|
</div>
|
|
|
|
<div className="confirm-approve-content__description">
|
2022-07-12 01:32:55 +02:00
|
|
|
{this.renderDescription()}
|
2019-11-05 16:13:48 +01:00
|
|
|
</div>
|
2022-12-05 17:59:15 +01:00
|
|
|
{assetStandard === ERC20 ||
|
|
|
|
(tokenSymbol && !tokenId && !isSetApproveForAll) ? (
|
|
|
|
<Box className="confirm-approve-content__address-display-content">
|
|
|
|
<Box display={DISPLAY.FLEX}>
|
|
|
|
<Identicon
|
|
|
|
className="confirm-approve-content__address-identicon"
|
|
|
|
diameter={20}
|
|
|
|
address={toAddress}
|
|
|
|
/>
|
|
|
|
<Typography
|
|
|
|
variant={TYPOGRAPHY.H6}
|
|
|
|
fontWeight={FONT_WEIGHT.NORMAL}
|
|
|
|
color={COLORS.TEXT_ALTERNATIVE}
|
|
|
|
boxProps={{ marginBottom: 0 }}
|
|
|
|
>
|
|
|
|
{ellipsify(toAddress)}
|
|
|
|
</Typography>
|
|
|
|
<Button
|
|
|
|
type="link"
|
|
|
|
className="confirm-approve-content__copy-address"
|
|
|
|
onClick={() => {
|
|
|
|
this.setState({ copied: true });
|
|
|
|
this.copyTimeout = setTimeout(
|
|
|
|
() => this.setState({ copied: false }),
|
|
|
|
SECOND * 3,
|
|
|
|
);
|
|
|
|
copyToClipboard(toAddress);
|
|
|
|
}}
|
|
|
|
title={
|
|
|
|
this.state.copied
|
|
|
|
? t('copiedExclamation')
|
|
|
|
: t('copyToClipboard')
|
|
|
|
}
|
|
|
|
>
|
|
|
|
<CopyIcon size={9} color="var(--color-icon-default)" />
|
|
|
|
</Button>
|
|
|
|
<Button
|
|
|
|
type="link"
|
|
|
|
className="confirm-approve-content__etherscan-link"
|
|
|
|
onClick={() => {
|
|
|
|
const blockExplorerTokenLink = isContract
|
|
|
|
? getTokenTrackerLink(
|
|
|
|
toAddress,
|
|
|
|
chainId,
|
|
|
|
null,
|
|
|
|
userAddress,
|
|
|
|
{
|
|
|
|
blockExplorerUrl: rpcPrefs?.blockExplorerUrl ?? null,
|
|
|
|
},
|
|
|
|
)
|
|
|
|
: getAccountLink(
|
|
|
|
toAddress,
|
|
|
|
chainId,
|
|
|
|
{
|
|
|
|
blockExplorerUrl: rpcPrefs?.blockExplorerUrl ?? null,
|
|
|
|
},
|
|
|
|
null,
|
|
|
|
);
|
|
|
|
global.platform.openTab({
|
|
|
|
url: blockExplorerTokenLink,
|
|
|
|
});
|
|
|
|
}}
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
title={t('etherscanView')}
|
|
|
|
>
|
|
|
|
<i
|
|
|
|
className="fa fa-share-square fa-sm"
|
|
|
|
style={{ color: 'var(--color-icon-default)', fontSize: 11 }}
|
|
|
|
title={t('etherscanView')}
|
|
|
|
/>
|
|
|
|
</Button>
|
|
|
|
</Box>
|
|
|
|
</Box>
|
|
|
|
) : (
|
2022-11-14 20:28:27 +01:00
|
|
|
<Box marginBottom={4} marginTop={2}>
|
|
|
|
<Button
|
|
|
|
type="link"
|
|
|
|
className="confirm-approve-content__verify-contract-details"
|
|
|
|
onClick={() => this.setState({ setshowContractDetails: true })}
|
|
|
|
>
|
|
|
|
{t('verifyContractDetails')}
|
|
|
|
</Button>
|
|
|
|
{setshowContractDetails && (
|
|
|
|
<ContractDetailsModal
|
|
|
|
onClose={() => this.setState({ setshowContractDetails: false })}
|
|
|
|
tokenName={tokenSymbol}
|
|
|
|
tokenAddress={tokenAddress}
|
|
|
|
toAddress={toAddress}
|
|
|
|
chainId={chainId}
|
|
|
|
rpcPrefs={rpcPrefs}
|
|
|
|
tokenId={tokenId}
|
|
|
|
assetName={assetName}
|
|
|
|
assetStandard={assetStandard}
|
|
|
|
/>
|
|
|
|
)}
|
|
|
|
</Box>
|
|
|
|
)}
|
2022-03-09 15:38:12 +01:00
|
|
|
{assetStandard === ERC20 ? (
|
|
|
|
<div className="confirm-approve-content__edit-submission-button-container">
|
|
|
|
<div
|
|
|
|
className="confirm-approve-content__medium-link-text cursor-pointer"
|
|
|
|
onClick={() =>
|
|
|
|
showEditApprovalPermissionModal({
|
|
|
|
customTokenAmount,
|
|
|
|
decimals,
|
|
|
|
origin,
|
|
|
|
setCustomAmount,
|
|
|
|
tokenAmount,
|
|
|
|
tokenSymbol,
|
|
|
|
tokenBalance,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
>
|
|
|
|
{t('editPermission')}
|
|
|
|
</div>
|
2019-11-05 16:13:48 +01:00
|
|
|
</div>
|
2022-03-09 15:38:12 +01:00
|
|
|
) : null}
|
2019-11-05 16:13:48 +01:00
|
|
|
<div className="confirm-approve-content__card-wrapper">
|
|
|
|
{this.renderApproveContentCard({
|
|
|
|
symbol: <i className="fa fa-tag" />,
|
2021-11-02 23:15:05 +01:00
|
|
|
title: t('transactionFee'),
|
2019-11-05 16:13:48 +01:00
|
|
|
showEdit: true,
|
2021-12-06 17:39:35 +01:00
|
|
|
showAdvanceGasFeeOptions: true,
|
2019-11-05 16:13:48 +01:00
|
|
|
onEditClick: showCustomizeGasModal,
|
|
|
|
content: this.renderTransactionDetailsContent(),
|
2021-04-17 00:00:18 +02:00
|
|
|
noBorder: useNonceField || !showFullTxDetails,
|
|
|
|
footer: !useNonceField && (
|
2019-12-03 17:35:44 +01:00
|
|
|
<div
|
|
|
|
className="confirm-approve-content__view-full-tx-button-wrapper"
|
2020-11-03 00:41:28 +01:00
|
|
|
onClick={() =>
|
|
|
|
this.setState({
|
|
|
|
showFullTxDetails: !this.state.showFullTxDetails,
|
|
|
|
})
|
|
|
|
}
|
2019-12-03 17:35:44 +01:00
|
|
|
>
|
|
|
|
<div className="confirm-approve-content__view-full-tx-button cursor-pointer">
|
|
|
|
<div className="confirm-approve-content__small-blue-text">
|
2022-04-26 17:21:52 +02:00
|
|
|
{this.state.showFullTxDetails
|
|
|
|
? t('hideFullTransactionDetails')
|
|
|
|
: t('viewFullTransactionDetails')}
|
2019-12-03 17:35:44 +01:00
|
|
|
</div>
|
2020-04-01 22:38:19 +02:00
|
|
|
<i
|
|
|
|
className={classnames({
|
|
|
|
'fa fa-caret-up': showFullTxDetails,
|
|
|
|
'fa fa-caret-down': !showFullTxDetails,
|
|
|
|
})}
|
2019-12-03 17:35:44 +01:00
|
|
|
/>
|
2019-11-05 16:13:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-12-03 17:35:44 +01:00
|
|
|
),
|
2019-11-05 16:13:48 +01:00
|
|
|
})}
|
2021-04-17 00:00:18 +02:00
|
|
|
{useNonceField &&
|
|
|
|
this.renderApproveContentCard({
|
|
|
|
showHeader: false,
|
|
|
|
content: this.renderCustomNonceContent(),
|
|
|
|
useNonceField,
|
|
|
|
noBorder: !showFullTxDetails,
|
|
|
|
footer: (
|
|
|
|
<div
|
|
|
|
className="confirm-approve-content__view-full-tx-button-wrapper"
|
|
|
|
onClick={() =>
|
|
|
|
this.setState({
|
|
|
|
showFullTxDetails: !this.state.showFullTxDetails,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
>
|
|
|
|
<div className="confirm-approve-content__view-full-tx-button cursor-pointer">
|
|
|
|
<div className="confirm-approve-content__small-blue-text">
|
2022-04-26 17:21:52 +02:00
|
|
|
{this.state.showFullTxDetails
|
|
|
|
? t('hideFullTransactionDetails')
|
|
|
|
: t('viewFullTransactionDetails')}
|
2021-04-17 00:00:18 +02:00
|
|
|
</div>
|
|
|
|
<i
|
|
|
|
className={classnames({
|
|
|
|
'fa fa-caret-up': showFullTxDetails,
|
|
|
|
'fa fa-caret-down': !showFullTxDetails,
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
),
|
|
|
|
})}
|
2019-11-05 16:13:48 +01:00
|
|
|
</div>
|
|
|
|
|
2021-11-13 00:22:24 +01:00
|
|
|
{fromAddressIsLedger ? (
|
2021-10-21 21:17:03 +02:00
|
|
|
<div className="confirm-approve-content__ledger-instruction-wrapper">
|
|
|
|
<LedgerInstructionField
|
|
|
|
showDataInstruction={Boolean(txData.txParams?.data)}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
) : null}
|
|
|
|
|
2022-03-09 15:38:12 +01:00
|
|
|
{showFullTxDetails ? this.renderFullDetails() : null}
|
2019-11-05 16:13:48 +01:00
|
|
|
</div>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2019-11-05 16:13:48 +01:00
|
|
|
}
|
|
|
|
}
|