mirror of
https://github.com/R0m1k3/Reviflow.git
synced 2026-10-22 22:48:07 +02:00
feat: implement dark mode with theme toggle and persistence
This commit is contained in:
1 parent
7a816c8230
commit
e7e5382de4
7 files changed
+163
-69
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user