From 634d9264b5c1fd9c32ea4cbeb07d83d6aa4720fc Mon Sep 17 00:00:00 2001 From: jaaaaavier Date: Tue, 3 Dec 2024 15:40:08 +0100 Subject: [PATCH] Update TestimonialsSection.tsx --- src/components/home/TestimonialsSection.tsx | 31 ++++++++++----------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/src/components/home/TestimonialsSection.tsx b/src/components/home/TestimonialsSection.tsx index 431e60a33..79fe372ef 100644 --- a/src/components/home/TestimonialsSection.tsx +++ b/src/components/home/TestimonialsSection.tsx @@ -20,23 +20,24 @@ interface TestimonialsSectionProps { textComponent?: ReactNode; } -const AvatarAndText = ({ testimonial,textColor }: TestimonialProps): JSX.Element => ( +const AvatarAndText = ({ testimonial, textColor }: TestimonialProps): JSX.Element => (
FixThePhoto Avatar
-

- {testimonial.testimonialName} -

-

- {testimonial.company} -

+

{testimonial.testimonialName}

+

{testimonial.company}

); -const TestimonialsSection = ({ textContent, bgColor,textComponent,textColor }: TestimonialsSectionProps): JSX.Element => { +const TestimonialsSection = ({ + textContent, + bgColor, + textComponent, + textColor, +}: TestimonialsSectionProps): JSX.Element => { const testimonials = [ { review: textContent.cards[0].review, @@ -59,22 +60,18 @@ const TestimonialsSection = ({ textContent, bgColor,textComponent,textColor }: T ]; return ( -
-
+
+
- { textComponent} -

- {textContent.title.normal} {textContent.title.blue} -

+ {textComponent} +

{textContent.title}

{testimonials.map((testimonial) => (
-

- {testimonial.review} -

+

{testimonial.review}