1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Part of #17670: Replace Typography with Text component for networks-list.js (#18754)

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
This commit is contained in:
Harsh Shukla 2023-04-25 23:19:02 +05:30 committed by GitHub
parent 6126c156ea
commit ab3e3976e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,12 +3,12 @@ import PropTypes from 'prop-types';
import classnames from 'classnames';
import { useI18nContext } from '../../../../hooks/useI18nContext';
import CustomContentSearch from '../custom-content-search';
import Typography from '../../../../components/ui/typography';
import {
Color,
TypographyVariant,
TextVariant,
} from '../../../../helpers/constants/design-system';
import NetworksListItem from '../networks-list-item';
import { Text } from '../../../../components/component-library';
const NetworksList = ({
networkIsSelected,
@ -62,14 +62,15 @@ const NetworksList = ({
/>
))}
{searchQuery === '' && (
<Typography
variant={TypographyVariant.H6}
<Text
variant={TextVariant.bodySm}
as="h6"
marginTop={4}
color={Color.textAlternative}
className="networks-tab__networks-list__label"
>
{t('testNetworks')}
</Typography>
</Text>
)}
{searchedNetworksToRenderThatAreTestNetworks.map((network, _) => (
<NetworksListItem