modificaciones de scorm reporte de calificacion y cambio de rutas absolutas a relativas

This commit is contained in:
2026-07-25 02:03:53 -06:00
parent 3ce44d7aac
commit ba8f7e5059
5 changed files with 34 additions and 9 deletions
+2 -2
View File
@@ -5,14 +5,14 @@ import QuestionModal from '../game/QuestionModal'
import RuletaSVG from '../game/Ruleta/RuletaSVG'
interface GameProps {
onEnd: (aprobado: boolean) => void
onEnd: (aprobado: boolean, correctas: number) => void
}
export default function Game({ onEnd }: GameProps) {
const { estado, categorias, girar, responder, cerrarFeedback, MAX_PREGUNTAS } = useRuleta()
useEffect(() => {
if (estado.completado) onEnd(estado.aprobado)
if (estado.completado) onEnd(estado.aprobado, estado.correctas)
}, [estado.completado])
function handleGirar() {