diff --git a/src/components/carousel.tsx b/src/components/carousel.tsx index b366c30..5bcabec 100644 --- a/src/components/carousel.tsx +++ b/src/components/carousel.tsx @@ -51,7 +51,7 @@ export default function Carousel({ images, className }: Props) {
{images.map((src, index) => ( -
+
))} diff --git a/src/components/image-viewer.tsx b/src/components/image-viewer.tsx index 09cfa08..b7b76b1 100644 --- a/src/components/image-viewer.tsx +++ b/src/components/image-viewer.tsx @@ -41,7 +41,7 @@ export default function ImageViewer({ src, alt, width, height, className, images useEffect(() => { if (!emblaApi) return; - // Keep order of images whilst opening on src + // Keep order of images whilst opening at src prop const index = images.indexOf(src); if (index !== -1) { emblaApi.scrollTo(index); @@ -111,8 +111,8 @@ export default function ImageViewer({ src, alt, width, height, className, images ) : ( <> {images.map((image, index) => ( -
- {alt} +
+ {alt}
))}