Skip to content

Commit

Permalink
Imports que faltaban
Browse files Browse the repository at this point in the history
  • Loading branch information
uo287627 committed Apr 28, 2024
1 parent 40edf3e commit afb4913
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions webapp/src/components/GameSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
import React, { useState, useEffect } from 'react';
import { Box, Typography, Slider, TextField, FormGroup, FormControlLabel, Checkbox, Tab } from '@mui/material';
import { TabContext, TabList, TabPanel } from '@mui/lab';
import PropTypes from 'prop-types';

import Game from './Game';

const GameSettings = ({ setSettings, currentUser }) => {
const [isWarningVisible, setIsWarningVisible] = useState(false);
Expand Down Expand Up @@ -195,4 +198,9 @@ const GameSettings = ({ setSettings, currentUser }) => {
);
};

GameSettings.propTypes = {
setSettings: PropTypes.func.isRequired,
currentUser: PropTypes.func.isRequired,
};

export default GameSettings;
1 change: 1 addition & 0 deletions webapp/src/components/GeneratedQuestionsList.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

import React, { useState, useEffect } from 'react';
import axios from 'axios';
import PropTypes from 'prop-types';

const GeneratedQuestionsList = ({setError}) => {

Expand Down
1 change: 1 addition & 0 deletions webapp/src/components/RankingList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import PropTypes from 'prop-types';

const RankingList = ({setError}) => {
const [listUsers, setListUsers] = useState([]);
Expand Down
6 changes: 6 additions & 0 deletions webapp/src/components/RecordList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import PropTypes from 'prop-types';
import { userInfo } from 'os';

const RecordList = ({ username }) => {
const [listRecords, setListRecords] = useState([]);
Expand Down Expand Up @@ -56,4 +58,8 @@ const RecordList = ({ username }) => {
);
};

RecordList.propTypes = {
username: PropTypes.func.isRequired,
};

export default RecordList;
2 changes: 2 additions & 0 deletions webapp/src/components/UsersList.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

import React, { useState, useEffect } from 'react';
import axios from 'axios';
import PropTypes from 'prop-types';

//import { Container, Typography, TextField, Button, Snackbar } from '@mui/material';

const UsersList = ({ setError }) => {
Expand Down

0 comments on commit afb4913

Please sign in to comment.