diff --git a/interface/src/App.tsx b/interface/src/App.tsx index d18e86252..7bdd58269 100644 --- a/interface/src/App.tsx +++ b/interface/src/App.tsx @@ -1,4 +1,4 @@ -import { FC, createRef, createContext, useContext, useEffect, useState, RefObject } from 'react'; +import { FC, createRef, useEffect, useState, RefObject } from 'react'; import { SnackbarProvider } from 'notistack'; import { IconButton } from '@mui/material'; @@ -23,10 +23,6 @@ const App: FC = () => { notistackRef.current.closeSnackbar(key); }; - const ColorModeContext = createContext({ toggleColorMode: () => {} }); - - const colorMode = useContext(ColorModeContext); - const [wasLoaded, setWasLoaded] = useState(false); useEffect(() => { @@ -36,26 +32,24 @@ const App: FC = () => { if (!wasLoaded) return null; return ( - - - - ( - - - - )} - > - - - - - - - + + + ( + + + + )} + > + + + + + + ); };