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

update icons for add-network (#19513)

This commit is contained in:
Nidhi Kumari 2023-06-08 22:56:20 +05:30 committed by GitHub
parent a8e194a8f6
commit c0afc4d2a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,11 +14,10 @@ import {
BackgroundColor, BackgroundColor,
TextColor, TextColor,
IconColor, IconColor,
Size,
} from '../../../helpers/constants/design-system'; } from '../../../helpers/constants/design-system';
import Button from '../../ui/button'; import Button from '../../ui/button';
import Tooltip from '../../ui/tooltip'; import Tooltip from '../../ui/tooltip';
import IconWithFallback from '../../ui/icon-with-fallback';
import IconBorder from '../../ui/icon-border';
import { import {
getNetworkConfigurations, getNetworkConfigurations,
getUnapprovedConfirmations, getUnapprovedConfirmations,
@ -36,7 +35,13 @@ import { FEATURED_RPCS } from '../../../../shared/constants/network';
import { ADD_NETWORK_ROUTE } from '../../../helpers/constants/routes'; import { ADD_NETWORK_ROUTE } from '../../../helpers/constants/routes';
import { getEnvironmentType } from '../../../../app/scripts/lib/util'; import { getEnvironmentType } from '../../../../app/scripts/lib/util';
import ZENDESK_URLS from '../../../helpers/constants/zendesk-url'; import ZENDESK_URLS from '../../../helpers/constants/zendesk-url';
import { Text, Icon, IconName, IconSize } from '../../component-library'; import {
Text,
Icon,
IconName,
IconSize,
AvatarNetwork,
} from '../../component-library';
import { MetaMetricsNetworkEventSource } from '../../../../shared/constants/metametrics'; import { MetaMetricsNetworkEventSource } from '../../../../shared/constants/metametrics';
const AddNetwork = () => { const AddNetwork = () => {
@ -193,15 +198,11 @@ const AddNetwork = () => {
className="add-network__list-of-networks" className="add-network__list-of-networks"
> >
<Box display={Display.Flex} alignItems={AlignItems.center}> <Box display={Display.Flex} alignItems={AlignItems.center}>
<Box> <AvatarNetwork
<IconBorder size={24}> size={Size.SM}
<IconWithFallback src={item.rpcPrefs?.imageUrl}
icon={item.rpcPrefs?.imageUrl} name={item.nickname}
name={item.nickname} />
size={24}
/>
</IconBorder>
</Box>
<Box marginLeft={2}> <Box marginLeft={2}>
<Text <Text
variant={TextVariant.bodySmBold} variant={TextVariant.bodySmBold}