--- template/app/src/landing-page/components/Testimonials.tsx +++ opensaas-sh/app/src/landing-page/components/Testimonials.tsx @@ -1,4 +1,3 @@ -import { useState } from "react"; import { Card, CardContent, @@ -21,18 +20,12 @@ }: { testimonials: Testimonial[]; }) { - const [isExpanded, setIsExpanded] = useState(false); - const shouldShowExpand = testimonials.length > 5; - const mobileItemsToShow = 3; - const itemsToShow = - shouldShowExpand && !isExpanded ? mobileItemsToShow : testimonials.length; - return (
- {testimonials.slice(0, itemsToShow).map((testimonial, idx) => ( + {testimonials.map((testimonial, idx) => (
@@ -65,19 +58,6 @@
))}
- - {shouldShowExpand && ( -
- -
- )}
); }