Skip to content

Commit

Permalink
Merge pull request #225 from wri/TM-936_hbf_landing_pages
Browse files Browse the repository at this point in the history
feat: TM-936 change hbf -> Harit Bharat Fund to my projects page
  • Loading branch information
LimberHope authored May 30, 2024
2 parents 9da6aa6 + 610c8e1 commit fd83d87
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/elements/Cards/ProjectCard/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Paper {...rest} className={classNames(className, "p-0")}>
<div className="flex items-center gap-4 border-b border-neutral-100 px-8 py-6">
Expand All @@ -72,11 +78,7 @@ const ProjectCard = ({ project, onDelete, title, children, className, ...rest }:
<div className="flex">
<Text variant="text-bold-subtitle-500">{t("Framework")}:&#160;</Text>
<Text variant="text-light-subtitle-400" className="capitalize">
{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}
</Text>
</div>
<div className="flex">
Expand Down

0 comments on commit fd83d87

Please sign in to comment.