fix: deploy issues
Some checks failed
CI - Lint, Typecheck & Test / quality-assurance (push) Failing after 34s

This commit is contained in:
2026-02-10 11:52:10 +01:00
parent cb51c37207
commit ae7a45a911
7 changed files with 123 additions and 101 deletions

View File

@@ -27,11 +27,11 @@ export default function GallerySection() {
if (photoParam !== null) {
const index = parseInt(photoParam, 10);
if (!isNaN(index) && index >= 0 && index < images.length) {
setLightboxIndex(index);
setLightboxOpen(true);
if (lightboxIndex !== index) setLightboxIndex(index);
if (!lightboxOpen) setLightboxOpen(true);
}
}
}, [searchParams, images.length]);
}, [searchParams, images.length, lightboxIndex, lightboxOpen]);
return (
<Section className="bg-white text-white py-32">
@@ -39,7 +39,7 @@ export default function GallerySection() {
<Heading level={2} subtitle={t('subtitle')} align="center">
{t('title')}
</Heading>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
{images.map((src, idx) => (
<button