From 8723c80018a87cd01690c716d04e2cb6cdebab68 Mon Sep 17 00:00:00 2001 From: uo287741 Date: Sun, 10 Mar 2024 23:17:56 +0100 Subject: [PATCH] Minor edition --- webapp/src/components/Game.tsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/webapp/src/components/Game.tsx b/webapp/src/components/Game.tsx index 1e56307..23fdea6 100644 --- a/webapp/src/components/Game.tsx +++ b/webapp/src/components/Game.tsx @@ -2,20 +2,18 @@ import { Button } from '@mui/material'; import axios from 'axios'; import { useState,useEffect, ReactNode } from 'react'; - -// Función para crear un juego - - +import { Question4Answers } from '/../../game/qgservice/Question4Answers.js'; +// Función para crear un juego const Game = () => { const user = 'user'; - const [questions, setQuestions] = useState([]); - const [currentQuestion, setCurrentQuestion] = useState(undefined); + const [questions, setQuestions] = useState([]); + const [currentQuestion, setCurrentQuestion] = useState(); const [elements, setElements] = useState([]); const[isGameStarted, setIsGameStarted] = useState(false); @@ -103,10 +101,6 @@ const Game = () => { } - - - - return (

Game