From 610c8e13f6a1ddb240d34f427d1794312f40e58c Mon Sep 17 00:00:00 2001 From: Limber Mamani Vallejos Date: Thu, 30 May 2024 10:27:20 -0400 Subject: [PATCH] feat: TM-936 change hbf -> Harit Bharat Fund to my projects page --- .../elements/Cards/ProjectCard/ProjectCard.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/elements/Cards/ProjectCard/ProjectCard.tsx b/src/components/elements/Cards/ProjectCard/ProjectCard.tsx index 1241271b6..cfc7d0f1a 100644 --- a/src/components/elements/Cards/ProjectCard/ProjectCard.tsx +++ b/src/components/elements/Cards/ProjectCard/ProjectCard.tsx @@ -56,6 +56,12 @@ const ProjectCard = ({ project, onDelete, title, children, className, ...rest }: ); }; + const frameworkNames: { [key: string]: string } = { + ppc: "Priceless Planet Coalition", + hbf: "Harit Bharat Fund", + terrafund: "TerraFund" + }; + return (
@@ -72,11 +78,7 @@ const ProjectCard = ({ project, onDelete, title, children, className, ...rest }:
{t("Framework")}:  - {project.framework_key === "ppc" - ? t("Priceless Planet Coalition") - : project.framework_key === "terrafund" - ? t("TerraFund") - : project.framework_key} + {frameworkNames[project.framework_key] ? t(frameworkNames[project.framework_key]) : project.framework_key}