Skip to content

Commit

Permalink
Más issues de sonar eliminados
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Apr 25, 2024
1 parent a16d907 commit 501fd47
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions webapp/src/pages/History/History.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ const History = () => {
{userData.games &&
userData.games.map((game, index) => (
<Box
key={index}
p={6}
borderWidth="1px"
width={{ base: "90%", lg: "50%" }}
Expand All @@ -95,15 +94,14 @@ const History = () => {
<Divider margin={"1rem 0"} />
<Flex overflowX={"scroll"} scrollSnapType={"x mandatory"}>
{game.questions.map((question, index) => (
<Box scrollSnapAlign={"start"} key={index} minWidth={"100%"} p={"1rem"}>
<Box scrollSnapAlign={"start"} minWidth={"100%"} p={"1rem"}>
<Heading as="h2" mb={4}>
{t("pages.wisebattery.question")} {index + 1}
</Heading>
<p>{question.pregunta}</p>
<Grid templateColumns="repeat(2, 1fr)" gap={4} mt={4}>
{question.respuestas.map((respuesta, index) => (
<Button
key={index}
whiteSpace={"normal"}
padding={"1rem"}
height={"fit-content"}
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/pages/Ranking/Ranking.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const Ranking = () => {
if (gamemode === "calculadora" && option.value === "ratioCorrect") {
return null;
}
return <option key={option.value} value={option.value}>{option.label}</option>;
return <option value={option.value}>{option.label}</option>;
})}
</Select>
<Button
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/pages/Sobre/Sobre.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const Sobre = () => {
</Thead>
<Tbody>
{designers.map((designer, index) => (
<Tr key={index}>
<Tr>
<Td>
<Flex flexDirection="column" alignItems="center">
<Avatar
Expand Down
3 changes: 1 addition & 2 deletions webapp/src/pages/Social/GroupDetails.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from "react";
import { useParams } from "react-router-dom";
import { useParams, useNavigate } from "react-router-dom";
import {
Container,
Box,
Expand All @@ -19,7 +19,6 @@ import Nav from "../../components/Nav/Nav.js";
import Footer from "../../components/Footer/Footer.js";
import { useTranslation } from "react-i18next";
import Perfil from "../../components/Profile/Profile.js";
import { useNavigate } from "react-router-dom";


const GroupDetails = () => {
Expand Down

0 comments on commit 501fd47

Please sign in to comment.