Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelPelletierEvraire committed Jun 19, 2024
1 parent 8f7ce46 commit ef5e4ca
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 30 deletions.
58 changes: 29 additions & 29 deletions src/Components/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,35 +42,35 @@ const Carousel: React.FC<CarouselProps> = ({ imgs }) => {

return (
<div>
<div className="carousel-wrapper">
<div className="curr-img">
<a className="prev" onClick={() => selectImg(currImg - 1)}>
&#10094;
</a>
<ImageZoomInOut
className="main-img"
imageUrl={imgList.length > 0 ? imgList[currImg].url : ""}
alt="No picture"
/>
<a className="next" onClick={() => selectImg(currImg + 1)}>
&#10095;
</a>
</div>
<div className="carousel">
{imgList.map((img: imgObject) => {
return (
<img
src={img.url}
className={
"carousel-img" + (img.index == currImg ? " current" : " ")
}
alt={imgList[currImg].title}
key={img.index}
onClick={() => selectImg(img.index)}
></img>
);
})}
</div>
<div className="carousel-wrapper">
<div className="curr-img">
<a className="prev" onClick={() => selectImg(currImg - 1)}>
&#10094;
</a>
<ImageZoomInOut
className="main-img"
imageUrl={imgList.length > 0 ? imgList[currImg].url : ""}
alt="No picture"
/>
<a className="next" onClick={() => selectImg(currImg + 1)}>
&#10095;
</a>
</div>
<div className="carousel">
{imgList.map((img: imgObject) => {
return (
<img
src={img.url}
className={
"carousel-img" + (img.index == currImg ? " current" : " ")
}
alt={imgList[currImg].title}
key={img.index}
onClick={() => selectImg(img.index)}
></img>
);
})}
</div>
</div>
</div>
);
Expand Down
1 change: 0 additions & 1 deletion src/Pages/FormPage/FormPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ const FormPage = () => {
};

useEffect(() => {

// load imgs for the carousel
const tmpUrls: { url: string; title: string }[] = [];
files.forEach((file) => {
Expand Down

0 comments on commit ef5e4ca

Please sign in to comment.