Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: TM-936 change hbf -> Harit Bharat Fund to my projects page #225

Merged
merged 1 commit into from
May 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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