diff --git a/ui/components/ui/new-network-info/new-network-info.js b/ui/components/ui/new-network-info/new-network-info.js
index e1da41051d82..fac443c44c00 100644
--- a/ui/components/ui/new-network-info/new-network-info.js
+++ b/ui/components/ui/new-network-info/new-network-info.js
@@ -1,11 +1,10 @@
-import React, { useContext, useEffect, useState, useCallback } from 'react';
+import React, { useCallback, useContext, useEffect, useState } from 'react';
import { useSelector } from 'react-redux';
import { useHistory } from 'react-router-dom';
+import { TOKEN_API_METASWAP_CODEFI_URL } from '../../../../shared/constants/tokens';
+import fetchWithCache from '../../../../shared/lib/fetch-with-cache';
import { I18nContext } from '../../../contexts/i18n';
-import Popover from '../popover';
-import Button from '../button';
-import Identicon from '../identicon';
-import Box from '../box';
+import { getProviderConfig } from '../../../ducks/metamask/metamask';
import {
AlignItems,
Color,
@@ -14,29 +13,23 @@ import {
TextAlign,
TextVariant,
} from '../../../helpers/constants/design-system';
-import { TOKEN_API_METASWAP_CODEFI_URL } from '../../../../shared/constants/tokens';
-import fetchWithCache from '../../../../shared/lib/fetch-with-cache';
-import {
- getNativeCurrencyImage,
- getUseTokenDetection,
-} from '../../../selectors';
-import { getProviderConfig } from '../../../ducks/metamask/metamask';
import { IMPORT_TOKEN_ROUTE } from '../../../helpers/constants/routes';
-import Chip from '../chip/chip';
+import { getCurrentNetwork, getUseTokenDetection } from '../../../selectors';
import { setFirstTimeUsedNetwork } from '../../../store/actions';
-import { NETWORK_TYPES } from '../../../../shared/constants/network';
-import { Icon, IconName, Text } from '../../component-library';
-import { getNetworkLabelKey } from '../../../helpers/utils/i18n-helper';
+import { PickerNetwork, Text } from '../../component-library';
+import Box from '../box';
+import Button from '../button';
+import Popover from '../popover';
-const NewNetworkInfo = () => {
+export default function NewNetworkInfo() {
const t = useContext(I18nContext);
const history = useHistory();
const [tokenDetectionSupported, setTokenDetectionSupported] = useState(false);
const [showPopup, setShowPopup] = useState(true);
const [isLoading, setIsLoading] = useState(true);
const autoDetectToken = useSelector(getUseTokenDetection);
- const primaryTokenImage = useSelector(getNativeCurrencyImage);
const providerConfig = useSelector(getProviderConfig);
+ const currentNetwork = useSelector(getCurrentNetwork);
const onCloseClick = () => {
setShowPopup(false);
@@ -95,29 +88,15 @@ const NewNetworkInfo = () => {
>
{t('switchedTo')}
-
- ) : (
-
- )
- }
+
{
{t('thingsToKeep')}
- {providerConfig.ticker ? (
+ {providerConfig.ticker && (
{
])}
- ) : null}
+ )}
{
)
);
-};
-
-export default NewNetworkInfo;
+}