diff --git a/components/home/HomePhotoGallerySection.tsx b/components/home/HomePhotoGallerySection.tsx index 5a08f34..8f9095e 100644 --- a/components/home/HomePhotoGallerySection.tsx +++ b/components/home/HomePhotoGallerySection.tsx @@ -44,7 +44,7 @@ export default function HomePhotoGallerySection() { setGalleryImages(formatted); // Unique years, sorted latest first - const uniqueYears:any = [...new Set(eventsData.map((event: any) => event.year))] + const uniqueYears: any = [...new Set(eventsData.map((event: any) => event.year))] setYears(uniqueYears); @@ -62,9 +62,9 @@ export default function HomePhotoGallerySection() { // Filter images by active year const filteredImages = galleryImages.filter((img) => img.year === activeYear) - - console.log("filteredImages", filteredImages) + + console.log("filteredImages", filteredImages) const handleImageClick = (index: number) => { const actualIndex = galleryImages.findIndex( @@ -103,12 +103,12 @@ export default function HomePhotoGallerySection() {
- {filteredImages.slice(0, 8).map((img:any, index) => ( + {filteredImages.slice(0, 8).map((img: any, index) => (
)} + +
+ + Go To Gallery + +
@@ -154,18 +164,10 @@ export default function HomePhotoGallerySection() {
-
+ {/*
-
- - Go To Gallery - -
-
+ +
*/}