diff --git a/src/App.jsx b/src/App.jsx index 80d12a2..0a3abe4 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -8,16 +8,16 @@ import Dashboard from './pages/Dashboard' import Admin from './pages/Admin' import Leren from './pages/Leren' +import Testen from './pages/Testen' // Placeholder components for routing structure -const Testen = () =>

Weektest

Start your weekly test here.

const Leaderboard = () =>

Leaderboard

See who is on top!

// Protected Route Wrapper const ProtectedRoute = ({ children, requireAdmin }) => { const { state, logout } = useApp() - if (state.isLoading) return
Laden...
+ if (state.isLoading) return
Loading...
if (!state.currentUser) { return @@ -38,8 +38,8 @@ const ProtectedRoute = ({ children, requireAdmin }) => { {/* Desktop Links */}
Dashboard - Leren - Testen + Learn + Test Leaderboard {state.currentUser.role === 'admin' && ( @@ -50,7 +50,7 @@ const ProtectedRoute = ({ children, requireAdmin }) => { onClick={logout} className="ml-4 border border-bg-warm/30 rounded-[var(--r-pill)] px-3 py-1 hover:bg-paper/10 transition-colors flex items-center gap-2" > - Uitloggen + Sign Out
@@ -65,8 +65,8 @@ const ProtectedRoute = ({ children, requireAdmin }) => { {/* Mobile Bottom Navigation */}