@@ -2,15 +2,14 @@ import React, { useEffect, useRef } from 'react';
22import PropTypes from 'prop-types' ;
33import classnames from 'classnames' ;
44import { useDispatch , useSelector } from 'react-redux' ;
5- import { useHistory } from 'react-router-dom' ;
65import { useI18nContext } from '../../../../hooks/useI18nContext' ;
76import {
87 NETWORK_TYPE_RPC ,
98 CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP ,
109} from '../../../../../shared/constants/network' ;
1110import LockIcon from '../../../../components/ui/lock-icon' ;
1211import IconCheck from '../../../../components/ui/icon/icon-check' ;
13- import { NETWORKS_FORM_ROUTE } from '../../../../helpers/constants/routes' ;
12+ import { NETWORKS_ROUTE } from '../../../../helpers/constants/routes' ;
1413import { setSelectedSettingsRpcUrl } from '../../../../store/actions' ;
1514import { getEnvironmentType } from '../../../../../app/scripts/lib/util' ;
1615import { ENVIRONMENT_TYPE_FULLSCREEN } from '../../../../../shared/constants/app' ;
@@ -28,7 +27,6 @@ const NetworksListItem = ({
2827 setSearchedNetworks,
2928} ) => {
3029 const t = useI18nContext ( ) ;
31- const history = useHistory ( ) ;
3230 const dispatch = useDispatch ( ) ;
3331 const environmentType = getEnvironmentType ( ) ;
3432 const isFullScreen = environmentType === ENVIRONMENT_TYPE_FULLSCREEN ;
@@ -68,7 +66,7 @@ const NetworksListItem = ({
6866 setSearchedNetworks ( [ ] ) ;
6967 dispatch ( setSelectedSettingsRpcUrl ( rpcUrl ) ) ;
7068 if ( ! isFullScreen ) {
71- history . push ( NETWORKS_FORM_ROUTE ) ;
69+ global . platform . openExtensionInBrowser ( NETWORKS_ROUTE ) ;
7270 }
7371 } }
7472 >
0 commit comments