Skip to content

Commit 57f24d9

Browse files
committed
Updated theme
1 parent f432408 commit 57f24d9

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

ui/components/app/add-network/add-network.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ import Tooltip from '../../ui/tooltip';
1919
import IconWithFallback from '../../ui/icon-with-fallback';
2020
import IconBorder from '../../ui/icon-border';
2121
import {
22-
getTheme,
2322
getFrequentRpcListDetail,
2423
getUnapprovedConfirmations,
2524
} from '../../../selectors';
26-
import { THEME_TYPE } from '../../../pages/settings/experimental-tab/experimental-tab.constant';
2725

2826
import {
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"

0 commit comments

Comments
 (0)