diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index a245a8b..133e222 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,19 +1,30 @@ -import { Routes, Route } from 'react-router-dom' +import { Routes, Route, Navigate } from 'react-router-dom' import Home from './pages/Home' import Lobby from './pages/Lobby' import Game from './pages/Game' import Results from './pages/Results' import Replay from './pages/Replay' +import { AdminLayout, Login, Dashboard, Questions, Calendar } from './pages/admin' function App() { return (
No hay preguntas para este día
+ ) : ( +{q.question_text}
+Cargando...
+ ) : unassignedQuestions.length === 0 ? ( +Todas las preguntas están asignadas
+ ) : ( +{q.question_text}
++ +{unassignedQuestions.length - 10} más +
+ )} +{card.label}
++ {loading ? '...' : card.value} +
++ Crear, editar, aprobar y generar preguntas con IA +
+ + + ++ Programar preguntas para fechas específicas +
+ ++ ⚠️ Tienes {stats.pendingQuestions} preguntas pendientes de aprobación.{' '} + + Revisar ahora + +
+Cargando...
+ ) : questions.length === 0 ? ( +No hay preguntas
+ ) : ( + questions.map((q) => ( +{q.question_text}
+R: {q.correct_answer}
+