From be5ccbbc0b929b4aac3cf88058cc3591baa7ac90 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 17 Feb 2025 20:05:10 +0000 Subject: [PATCH] Add testimonials --- src/components/SQLCourse/ReviewsSection.tsx | 32 +++++++++++++-------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/components/SQLCourse/ReviewsSection.tsx b/src/components/SQLCourse/ReviewsSection.tsx index 3b8a860fe..b5e98e02f 100644 --- a/src/components/SQLCourse/ReviewsSection.tsx +++ b/src/components/SQLCourse/ReviewsSection.tsx @@ -78,22 +78,23 @@ export function ReviewsSection() { }, ]; - const visibleReviews = isExpanded ? reviews : reviews.slice(0, 6); - return ( -
+
- {visibleReviews.map((review, index) => ( + {reviews.map((review, index) => (
{review.avatarUrl && ( @@ -124,14 +125,21 @@ export function ReviewsSection() {

{review.text}

))} -
- {!isExpanded && ( -
- )} +
+
-
+