From b9b690bae5af7cdadcd24b2c2a93a6fa0c4c59f5 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Thu, 15 Aug 2024 17:37:24 +0530 Subject: [PATCH] add testimonials --- src/components/home/CustomerFeedbackCard.tsx | 8 +++++--- src/components/home/Testimonials.tsx | 6 +++--- src/constants/index.tsx | 10 +++++----- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/components/home/CustomerFeedbackCard.tsx b/src/components/home/CustomerFeedbackCard.tsx index 3d9e17fe1a..f3ce80eeb6 100644 --- a/src/components/home/CustomerFeedbackCard.tsx +++ b/src/components/home/CustomerFeedbackCard.tsx @@ -26,7 +26,7 @@ const CustomerFeedbackCard: React.FC = ({ isCenterCard && "md:!relative md:-top-10" }`} > - {display === "Show" && department && ( + {department && ( <> {`Loved by `} @@ -37,9 +37,11 @@ const CustomerFeedbackCard: React.FC = ({ {`“${citation}”`} {display === "Show" && name && ( - {name} + <> + {designation} + {name} + )} - {designation} ) diff --git a/src/components/home/Testimonials.tsx b/src/components/home/Testimonials.tsx index f4e20c9708..e5d2d4cb44 100644 --- a/src/components/home/Testimonials.tsx +++ b/src/components/home/Testimonials.tsx @@ -1,7 +1,7 @@ import React from "react" import Heading from "@theme/Heading" import CustomerFeedbackCard from "./CustomerFeedbackCard" -import {customerFeedbacks} from "@site/src/constants" +import {testimonials} from "@site/src/constants" export enum TestimonialDisplay { Hide = "Hide", @@ -14,7 +14,7 @@ interface AppConfig { } const config: AppConfig = { - testimonials: TestimonialDisplay.Hide, // Default value + testimonials: TestimonialDisplay.Anon, // Default value } const Testimonials = () => { @@ -35,7 +35,7 @@ const Testimonials = () => {
- {customerFeedbacks.map((feedback) => ( + {testimonials.map((feedback) => (