From 35953acdfb52b9c6b7fe219aa1dfb33aa80067e4 Mon Sep 17 00:00:00 2001 From: alegarman2002 <116609314+alegarman2002@users.noreply.github.com> Date: Fri, 3 May 2024 03:34:53 +0200 Subject: [PATCH] Fixed sonnarcloud and problem with e2e --- webapp/src/components/FirstGame.js | 2 +- webapp/src/components/game/Calculator.js | 6 +++--- webapp/src/components/spinner/Spinner.css | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/webapp/src/components/FirstGame.js b/webapp/src/components/FirstGame.js index 24adabe4..32b04ffd 100644 --- a/webapp/src/components/FirstGame.js +++ b/webapp/src/components/FirstGame.js @@ -23,7 +23,7 @@ const Quiz = () => { let haveEnter = false; let id = useLocation().state.gameId; - const [questions, setQuestion] = useState([]); + const [questions] = useState([]); const [currentQuestionIndex, setCurrentQuestionIndex] = useState(0); const [remTime, setRemTime] = useState(0); const [totalTime, setTotalTime] = useState(0); diff --git a/webapp/src/components/game/Calculator.js b/webapp/src/components/game/Calculator.js index b5d38f34..8c6afbb0 100644 --- a/webapp/src/components/game/Calculator.js +++ b/webapp/src/components/game/Calculator.js @@ -1,5 +1,5 @@ import React, { useEffect, useState } from 'react'; -import { shuffleArray, secureRandomNumber, generateGameId, esperar, gameStore} from '../Util'; +import { shuffleArray, secureRandomNumber, esperar, gameStore} from '../Util'; import { Container, Typography, Box, LinearProgress } from '@mui/material'; import { Footer } from '../footer/Footer'; import { Nav } from '../nav/Nav'; @@ -29,8 +29,8 @@ const Calculator = () => { } const navigator = useNavigate(); - const [questions, setQuestions] = useState([]) - const [answeredQuestions, setAnsweredQuestions] = useState([]) + const [questions] = useState([]) + const [answeredQuestions] = useState([]) const [points, setPoints] = useState(0) const [remTime, setRemTime] = useState(0); diff --git a/webapp/src/components/spinner/Spinner.css b/webapp/src/components/spinner/Spinner.css index 65e20098..32616d22 100644 --- a/webapp/src/components/spinner/Spinner.css +++ b/webapp/src/components/spinner/Spinner.css @@ -28,7 +28,6 @@ display: inline-block; width: 50px; height: 100%; - background-color: transparent; border: none; color: white; font-size: 20px;