mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Update fee-card.js (#18746)
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
This commit is contained in:
parent
c972900928
commit
935831658f
@ -6,15 +6,15 @@ import InfoTooltip from '../../../components/ui/info-tooltip';
|
|||||||
import { CHAIN_IDS } from '../../../../shared/constants/network';
|
import { CHAIN_IDS } from '../../../../shared/constants/network';
|
||||||
import TransactionDetail from '../../../components/app/transaction-detail/transaction-detail.component';
|
import TransactionDetail from '../../../components/app/transaction-detail/transaction-detail.component';
|
||||||
import TransactionDetailItem from '../../../components/app/transaction-detail-item/transaction-detail-item.component';
|
import TransactionDetailItem from '../../../components/app/transaction-detail-item/transaction-detail-item.component';
|
||||||
import Typography from '../../../components/ui/typography';
|
|
||||||
import {
|
import {
|
||||||
TextColor,
|
TextColor,
|
||||||
TypographyVariant,
|
TextVariant,
|
||||||
FONT_WEIGHT,
|
FontWeight,
|
||||||
} from '../../../helpers/constants/design-system';
|
} from '../../../helpers/constants/design-system';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
import { MetaMetricsEventCategory } from '../../../../shared/constants/metametrics';
|
import { MetaMetricsEventCategory } from '../../../../shared/constants/metametrics';
|
||||||
import { getUseCurrencyRateCheck } from '../../../selectors';
|
import { getUseCurrencyRateCheck } from '../../../selectors';
|
||||||
|
import { Text } from '../../../components/component-library';
|
||||||
|
|
||||||
const GAS_FEES_LEARN_MORE_URL =
|
const GAS_FEES_LEARN_MORE_URL =
|
||||||
'https://community.metamask.io/t/what-is-gas-why-do-transactions-take-so-long/3172';
|
'https://community.metamask.io/t/what-is-gas-why-do-transactions-take-so-long/3172';
|
||||||
@ -120,14 +120,14 @@ export default function FeeCard({
|
|||||||
(secondaryFee?.maxFee !== undefined ||
|
(secondaryFee?.maxFee !== undefined ||
|
||||||
primaryFee?.maxFee !== undefined) && (
|
primaryFee?.maxFee !== undefined) && (
|
||||||
<>
|
<>
|
||||||
<Typography
|
<Text
|
||||||
as="span"
|
as="span"
|
||||||
fontWeight={FONT_WEIGHT.BOLD}
|
fontWeight={FontWeight.Bold}
|
||||||
color={TextColor.textAlternative}
|
color={TextColor.textAlternative}
|
||||||
variant={TypographyVariant.H7}
|
variant={TextVariant.bodySm}
|
||||||
>
|
>
|
||||||
{t('maxFee')}
|
{t('maxFee')}
|
||||||
</Typography>
|
</Text>
|
||||||
{useCurrencyRateCheck
|
{useCurrencyRateCheck
|
||||||
? `: ${secondaryFee.maxFee}`
|
? `: ${secondaryFee.maxFee}`
|
||||||
: `: ${primaryFee.maxFee}`}
|
: `: ${primaryFee.maxFee}`}
|
||||||
|
Loading…
Reference in New Issue
Block a user