From 9c954c0e430e47ab4c98932addfb6cc240bc8e35 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 21 Feb 2026 21:07:17 +0000 Subject: [PATCH] Add prev/next arrow buttons to photo carousel --- frontend/src/components/PhotoCarousel.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/frontend/src/components/PhotoCarousel.tsx b/frontend/src/components/PhotoCarousel.tsx index 34be257..7cd72c8 100644 --- a/frontend/src/components/PhotoCarousel.tsx +++ b/frontend/src/components/PhotoCarousel.tsx @@ -1,5 +1,6 @@ import { useState, useCallback, useEffect } from 'react'; import useEmblaCarousel from 'embla-carousel-react'; +import { ChevronLeft, ChevronRight } from 'lucide-react'; import type { ListingDetailPhoto } from '@/types'; interface PhotoCarouselProps { @@ -45,6 +46,25 @@ export function PhotoCarousel({ photos }: PhotoCarouselProps) { ))} + {/* Prev/Next arrows */} + {photos.length > 1 && ( + <> + + + + )} {/* Counter */}
{selectedIndex + 1} / {photos.length}