No need to set `loading={"lazy"}`
Build and publish docker image snapshot / build-and-publish (push) Successful in 1m10s Details

as react-photo-album has it in the props anyway
This commit is contained in:
Stefan Forstenlechner 2024-08-21 23:24:53 +02:00
parent 0a34124d7d
commit 297e7c570e
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ export const ImageGallery = ({ images }: { images: ImageWithThumbnail[] }) => {
photos={images} photos={images}
render={{ render={{
image: (props, context) => ( image: (props, context) => (
<img loading={"lazy"} {...props} src={context.photo.thumbnail} /> <img {...props} src={context.photo.thumbnail} />
), ),
}} }}
onClick={({ index }) => setIndex(index)} onClick={({ index }) => setIndex(index)}