mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
* Part of #17670 Replace Typography with Text component. * Worked on the mentioned lint issues. * Upgrading to enum version. Co-authored-by: George Marshall <georgewrmarshall@gmail.com> * Upgrading to enum version. Co-authored-by: George Marshall <georgewrmarshall@gmail.com> --------- Co-authored-by: George Marshall <georgewrmarshall@gmail.com> Co-authored-by: George Marshall <george.marshall@consensys.net>
This commit is contained in:
parent
19d6962957
commit
d403219210
@ -1,14 +1,14 @@
|
||||
import React, { useContext } from 'react';
|
||||
import {
|
||||
FONT_WEIGHT,
|
||||
FontWeight,
|
||||
TextColor,
|
||||
TypographyVariant,
|
||||
TextVariant,
|
||||
} from '../../../../helpers/constants/design-system';
|
||||
import { isNullish } from '../../../../helpers/utils/util';
|
||||
import { formatGasFeeOrFeeRange } from '../../../../helpers/utils/gas';
|
||||
import { I18nContext } from '../../../../contexts/i18n';
|
||||
import { useGasFeeContext } from '../../../../contexts/gasFee';
|
||||
import Typography from '../../../ui/typography/typography';
|
||||
import { Text } from '../../../component-library';
|
||||
import { BaseFeeTooltip, PriorityFeeTooltip } from './tooltips';
|
||||
import StatusSlider from './status-slider';
|
||||
|
||||
@ -29,15 +29,16 @@ const NetworkStatistics = () => {
|
||||
|
||||
return (
|
||||
<div className="network-statistics">
|
||||
<Typography
|
||||
<Text
|
||||
color={TextColor.textAlternative}
|
||||
fontWeight={FONT_WEIGHT.BOLD}
|
||||
fontWeight={FontWeight.Bold}
|
||||
marginTop={3}
|
||||
marginBottom={3}
|
||||
variant={TypographyVariant.H8}
|
||||
variant={TextVariant.bodyXs}
|
||||
as="h6"
|
||||
>
|
||||
{t('networkStatus')}
|
||||
</Typography>
|
||||
</Text>
|
||||
<div className="network-statistics__info">
|
||||
{isNullish(formattedLatestBaseFee) ? null : (
|
||||
<div
|
||||
|
Loading…
Reference in New Issue
Block a user