From 6d0c648e4911a56ddcb1d7a8933c0164fdcd68d9 Mon Sep 17 00:00:00 2001 From: baraganio Date: Wed, 27 Mar 2024 22:55:41 +0100 Subject: [PATCH] Quitar dependencias y variables que no se usan con el fin de que no falle el deploy 2 --- webapp/src/components/Game.js | 4 +--- webapp/src/components/HistoricalData.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/webapp/src/components/Game.js b/webapp/src/components/Game.js index ccbda51e..005d7ade 100644 --- a/webapp/src/components/Game.js +++ b/webapp/src/components/Game.js @@ -1,4 +1,3 @@ - import React, { useState, useEffect } from 'react'; import axios from 'axios'; import { Container, Typography, Button, Paper} from '@mui/material'; @@ -15,7 +14,6 @@ const Game = () => { const [correctOption, setCorrectOption] = useState(''); const [answerOptions, setAnswerOptions] = useState([]); const [correctCounter, setCorrectCounter] = useState(0); - const [numberOfOptions, setNumberOfOptions] = useState(); const [questionCounter, setQuestionCounter] = useState(0); const [incorrectCounter, setIncorrectCounter] = useState(0); @@ -27,7 +25,7 @@ const Game = () => { useEffect(() => { handleShowQuestion(); - }, []); + }); useEffect(() => { diff --git a/webapp/src/components/HistoricalData.js b/webapp/src/components/HistoricalData.js index 904836c4..6e746026 100644 --- a/webapp/src/components/HistoricalData.js +++ b/webapp/src/components/HistoricalData.js @@ -1,7 +1,7 @@ import axios from 'axios'; import React, { useState} from 'react'; import { useNavigate} from 'react-router-dom'; -import { Container, Typography, Button} from '@mui/material'; +import { Container, Button} from '@mui/material'; const HistoricalData = () => { const navigate = useNavigate();