feat: implement dark mode with theme toggle and persistence

This commit is contained in:
Reviflow Bot committed 2026-02-05 21:26:09 +01:00
1 parent 7a816c8230
commit e7e5382de4
7 files changed
+163 -69

No files matched your search

+3
View File
@@ -14,6 +14,7 @@ import { ParentalGate } from './features/auth/ParentalGate';
import { ProfileSelectionPage } from './features/auth/ProfileSelectionPage';
import { ParentHubPage } from './pages/ParentHubPage';
import { HistoryPage } from './features/quiz/HistoryPage';
import { useThemeEffect } from './stores/useTheme';
function ProtectedRoute({ children }: { children: React.ReactNode }) {
@@ -74,6 +75,8 @@ function ParentalProtectedRoute({ children }: { children: React.ReactNode }) {
}
function App() {
useThemeEffect();
return (
<BrowserRouter>
<Routes>