Skip to content

Commit

Permalink
419 remove slideshow arrow (#447)
Browse files Browse the repository at this point in the history
* arrow last page

* fix lint
  • Loading branch information
tiffanyorian authored Feb 3, 2024
1 parent 2a9f411 commit 202e7e0
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/components/SlideShow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,18 @@ export default function SlideShow(props: SlideShowProps): JSX.Element {
</button>
)}
{props.images[imageNumber]}
<button
onClick={() => {
if (imageNumber < props.images.length - 1) {
setImageNumber(imageNumber + 1);
}
}}
className="right"
>
<img src={RightArrow} alt="Right Arrow" />
</button>
{imageNumber < props.images.length - 1 && (
<button
onClick={() => {
if (imageNumber < props.images.length - 1) {
setImageNumber(imageNumber + 1);
}
}}
className="right"
>
<img src={RightArrow} alt="Right Arrow" />
</button>
)}
<div className="indicator">
{props.images.map((_item, index) => {
if (index == imageNumber) {
Expand Down

0 comments on commit 202e7e0

Please sign in to comment.