From 1be821b8cb00cbacf3f2799fec7018eb86ce9905 Mon Sep 17 00:00:00 2001 From: Stefan Forstenlechner Date: Wed, 21 Aug 2024 23:24:53 +0200 Subject: [PATCH] No need to set `loading={"lazy"}` as react-photo-album has it in the props anyway --- picture-gallery-client/package-lock.json | 8 ++++---- picture-gallery-client/package.json | 2 +- picture-gallery-client/src/ImageGallery/ImageGallery.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/picture-gallery-client/package-lock.json b/picture-gallery-client/package-lock.json index 765e8e6..3ed2138 100644 --- a/picture-gallery-client/package-lock.json +++ b/picture-gallery-client/package-lock.json @@ -33,7 +33,7 @@ "eslint-plugin-react-hooks": "^4.6.2", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-photo-album": "^3.0.1", + "react-photo-album": "^3.0.2", "react-router-dom": "^6.26.0", "typescript": "^5.5.4", "vite": "^5.4.0", @@ -5963,9 +5963,9 @@ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==" }, "node_modules/react-photo-album": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/react-photo-album/-/react-photo-album-3.0.1.tgz", - "integrity": "sha512-yk3FJAuQn8UPZufbdYURa1wy+3tVVNaflyMOQ0mC8dlAWbDhlLDWJ0oGKSbbZkHMX7L3SGRIyWieix++AlD+TQ==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/react-photo-album/-/react-photo-album-3.0.2.tgz", + "integrity": "sha512-w3+8i6aj9l1jRfcubgVbAlBGSdtiXcqWdcwZcH4/Bavc+v7X7h+S3TkQ723pvDABjhaaxS168g9ECEBP6xnKrQ==", "engines": { "node": ">=18" }, diff --git a/picture-gallery-client/package.json b/picture-gallery-client/package.json index 8c60ae9..3d0adee 100644 --- a/picture-gallery-client/package.json +++ b/picture-gallery-client/package.json @@ -42,7 +42,7 @@ "eslint-plugin-react-hooks": "^4.6.2", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-photo-album": "^3.0.1", + "react-photo-album": "^3.0.2", "react-router-dom": "^6.26.0", "typescript": "^5.5.4", "vite": "^5.4.0", diff --git a/picture-gallery-client/src/ImageGallery/ImageGallery.tsx b/picture-gallery-client/src/ImageGallery/ImageGallery.tsx index 6bee6e6..b373faa 100644 --- a/picture-gallery-client/src/ImageGallery/ImageGallery.tsx +++ b/picture-gallery-client/src/ImageGallery/ImageGallery.tsx @@ -22,7 +22,7 @@ export const ImageGallery = ({ images }: { images: ImageWithThumbnail[] }) => { photos={images} render={{ image: (props, context) => ( - + ), }} onClick={({ index }) => setIndex(index)}