Skip to content

Commit

Permalink
Arreglos de warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
uo264915 committed Apr 7, 2024
1 parent 881154f commit cfd29cd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions webapp/src/components/Game.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import { Container, Typography, Button, Paper} from '@mui/material';
import { useNavigate, useParams } from 'react-router-dom';
import { useNavigate } from 'react-router-dom';

import './Game.css';

Expand Down Expand Up @@ -83,6 +83,7 @@ const Game = () => {

useEffect(() => {
handleShowQuestion();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

useEffect(() => {
Expand All @@ -99,14 +100,16 @@ const Game = () => {
if (isGameFinished() && !isFinished){
finishGame();
setFinished(true);
; }
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [correctCounter]);

useEffect(() => {
if (isGameFinished() && !isFinished){
finishGame();
setFinished(true);
; }
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [incorrectCounter]);

// This method will call the create question service
Expand Down
6 changes: 3 additions & 3 deletions webapp/src/components/MainPage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import { Container, Typography, TextField, Button, Snackbar } from '@mui/material';
import { useNavigate, useParams } from 'react-router-dom';
import React, { } from 'react';
import { Container, Typography, Button } from '@mui/material';
import { useNavigate } from 'react-router-dom';
import './MainPage.css';

const MainPage = () => {
Expand Down

0 comments on commit cfd29cd

Please sign in to comment.