diff --git a/src/components/sections/testimonial/TestimonialCardOne.tsx b/src/components/sections/testimonial/TestimonialCardOne.tsx index 63006ee..99940b8 100644 --- a/src/components/sections/testimonial/TestimonialCardOne.tsx +++ b/src/components/sections/testimonial/TestimonialCardOne.tsx @@ -1,6 +1,6 @@ "use client"; -import { memo } from "react"; +import { memo, useState } from "react"; import CardStack from "@/components/cardStack/CardStack"; import MediaContent from "@/components/shared/MediaContent"; import { cls } from "@/lib/utils"; @@ -18,6 +18,7 @@ type Testimonial = { videoSrc?: string; imageAlt?: string; videoAriaLabel?: string; + testimonialText?: string; }; interface TestimonialCardOneProps { @@ -50,6 +51,7 @@ interface TestimonialCardOneProps { nameClassName?: string; roleClassName?: string; companyClassName?: string; + testimonialTextClassName?: string; gridClassName?: string; carouselClassName?: string; controlsClassName?: string; @@ -69,6 +71,7 @@ interface TestimonialCardProps { nameClassName?: string; roleClassName?: string; companyClassName?: string; + testimonialTextClassName?: string; } const TestimonialCard = memo(({ @@ -80,41 +83,85 @@ const TestimonialCard = memo(({ nameClassName = "", roleClassName = "", companyClassName = "", + testimonialTextClassName = "", }: TestimonialCardProps) => { - return ( -
+ {testimonial.role} +
++ {testimonial.company} +
+- {testimonial.role} -
-- {testimonial.company} + {/* Back of card */} +
+ {testimonial.testimonialText || "No testimonial text provided"}