aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-frontend/src/App.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'thallium-frontend/src/App.tsx')
-rw-r--r--thallium-frontend/src/App.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/thallium-frontend/src/App.tsx b/thallium-frontend/src/App.tsx
index d58e34e..0aab74b 100644
--- a/thallium-frontend/src/App.tsx
+++ b/thallium-frontend/src/App.tsx
@@ -5,7 +5,7 @@ import {
RouterProvider,
} from "react-router-dom";
-import themes from './themes.tsx';
+import themes from './themes';
import Header from "./components/Header";
@@ -68,8 +68,7 @@ function App() {
const theme = isDarkMode ? themes.dark : themes.light;
useEffect(() => {
- const prefersDark = window.matchMedia &&
- window.matchMedia('(prefers-color-scheme: dark)').matches;
+ const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
setIsDarkMode(prefersDark);
}, []);