Browse Source

fix: 🐛

imwald
codytseng 10 months ago
parent
commit
86880af581
  1. 2
      src/components/ImageGallery/index.tsx

2
src/components/ImageGallery/index.tsx

@ -112,7 +112,7 @@ export default function ImageGallery({
createPortal( createPortal(
<div onClick={(e) => e.stopPropagation()}> <div onClick={(e) => e.stopPropagation()}>
<Lightbox <Lightbox
index={start + index} index={index}
slides={images.map(({ url }) => ({ src: url }))} slides={images.map(({ url }) => ({ src: url }))}
plugins={[Zoom]} plugins={[Zoom]}
open={index >= 0} open={index >= 0}

Loading…
Cancel
Save