Skip to content

Commit

Permalink
small patches
Browse files Browse the repository at this point in the history
  • Loading branch information
andrrsin committed Apr 21, 2024
1 parent 3346937 commit 2ba3913
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions webapp/src/components/Question.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Question = (props) => {

useEffect(() => {
const interval = setInterval(() => {
if (renderedImages == imagesPerQuestion) {
if (renderedImages === imagesPerQuestion) {
setCounter((prevCounter) => prevCounter + 0.4);
}
}, 40);
Expand Down Expand Up @@ -129,7 +129,7 @@ const Question = (props) => {
<div className="grid grid-cols-2 mt-10 item">
{questions[currentQuestion].images.map(image => (
<button className="transition-transform transform-gpu hover:scale-105 rounded-xl mx-8 my-8 max-h-52 max-w-80">
<img src={image} alt='Loading image...' className="rounded-lg object-contain shadow-md"
<img src={image} alt='Loading ...' className="rounded-lg object-contain shadow-md"
onClick={async () => await answerQuestion(image, questions[currentQuestion].question)}
onLoad={() => setRenderedImages(renderedImages => renderedImages + 1)}></img>
</button>
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/ranking/RankingLayout.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import React, { useState } from "react";
import RankingsTable from "./RankingTable";

const RankingsLayout = () => {
Expand Down

0 comments on commit 2ba3913

Please sign in to comment.