File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
ui/components/app/add-network Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,9 @@ import Tooltip from '../../ui/tooltip';
1919import IconWithFallback from '../../ui/icon-with-fallback' ;
2020import IconBorder from '../../ui/icon-border' ;
2121import {
22- getTheme ,
2322 getFrequentRpcListDetail ,
2423 getUnapprovedConfirmations ,
2524} from '../../../selectors' ;
26- import { THEME_TYPE } from '../../../pages/settings/experimental-tab/experimental-tab.constant' ;
2725
2826import {
2927 ENVIRONMENT_TYPE_FULLSCREEN ,
@@ -58,15 +56,6 @@ const AddNetwork = () => {
5856 ) ;
5957 const unapprovedConfirmations = useSelector ( getUnapprovedConfirmations ) ;
6058 const [ showPopover , setShowPopover ] = useState ( false ) ;
61- const [ theme , setTheme ] = useState ( useSelector ( getTheme ) ) ;
62-
63- if ( theme === THEME_TYPE . OS ) {
64- const osTheme = window ?. matchMedia ( '(prefers-color-scheme: dark)' ) ?. matches
65- ? THEME_TYPE . DARK
66- : THEME_TYPE . LIGHT ;
67-
68- setTheme ( osTheme ) ;
69- }
7059
7160 useEffect ( ( ) => {
7261 const anAddNetworkConfirmationFromMetaMaskExists = unapprovedConfirmations ?. find (
@@ -237,7 +226,6 @@ const AddNetwork = () => {
237226 </ Box >
238227 }
239228 trigger = "mouseenter"
240- theme = { theme }
241229 >
242230 < i
243231 className = "fa fa-exclamation-triangle add-network__warning-icon"
You can’t perform that action at this time.
0 commit comments