diff --git a/src/app/(agent)/agent/dashboard/page.tsx b/src/app/(agent)/agent/dashboard/page.tsx index 00c0684..6b666f6 100644 --- a/src/app/(agent)/agent/dashboard/page.tsx +++ b/src/app/(agent)/agent/dashboard/page.tsx @@ -137,9 +137,9 @@ export default function AgentDashboard() { setPendingRequestCount(requestCounts.pending); } - // Map testimonials for TestimonialsSection (latest 3) + // Map all testimonials for TestimonialsSection (horizontal scroll) setTestimonials( - testimonialsData.slice(0, 3).map((t) => ({ + testimonialsData.map((t) => ({ id: t.id, text: t.text, author: t.authorName, diff --git a/src/components/profile/TestimonialsSection.tsx b/src/components/profile/TestimonialsSection.tsx index bf12a4e..e3e5ee1 100644 --- a/src/components/profile/TestimonialsSection.tsx +++ b/src/components/profile/TestimonialsSection.tsx @@ -30,15 +30,19 @@ export function TestimonialsSection({ testimonials }: TestimonialsSectionProps)

Clients rate our real estate services {averageRating} out of 5 on average, based on {testimonials.length} recent client review{testimonials.length !== 1 ? 's' : ''}.

-
+
{testimonials.map((testimonial) => ( - + className="flex-none w-[85%] sm:w-[45%] lg:w-[calc((100%-3rem)/3)] snap-start" + > + +
))}