diff --git a/docs/Build_Guide/first2.md b/docs/Build_Guide/first2.md index cdc75f8..cdffe1f 100644 --- a/docs/Build_Guide/first2.md +++ b/docs/Build_Guide/first2.md @@ -12,11 +12,11 @@ import StepWithCarousel from '@site/src/components/StepWithCarousel'; diff --git a/src/components/ImageCarousel.js b/src/components/ImageCarousel.js index 3b9b4dd..1c194aa 100644 --- a/src/components/ImageCarousel.js +++ b/src/components/ImageCarousel.js @@ -41,6 +41,9 @@ export default function ImageCarousel({ images }) { className={styles.mainImage} onClick={() => setIsOpen(true)} /> + {currentImage.caption && ( +
{currentImage.caption}
+ )}
{images.map((img, i) => ( ❮ - {currentImage.caption} +
+ {currentImage.caption} + {currentImage.caption && ( +
{currentImage.caption}
+ )} +