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

Tm 936 ensure harit bharat fund landing pages #223

Closed
Closed
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ const HighLevelMetics: FC = () => {
</Labeled>
</When>
<When condition={record?.framework_key === "ppc"}>
<Labeled label="Workdays Created" sx={inlineLabelSx}>
<NumberField source="workday_count" emptyText="0" />
</Labeled>
<Labeled label="Self Reported Workdays Created" sx={inlineLabelSx}>
<Labeled label="Workdays Created (Old Calculation)" sx={inlineLabelSx}>
<NumberField source="self_reported_workday_count" emptyText="0" />
</Labeled>
<Labeled label="Workdays Created (New Calculation)" sx={inlineLabelSx}>
<NumberField source="workday_count" emptyText="0" />
</Labeled>
</When>
<Labeled label="Trees Planted" sx={inlineLabelSx}>
<NumberField source="trees_planted_count" emptyText="0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ const HighLevelMetics: FC = () => {
<Box paddingX={3.75} paddingY={2}>
<Stack gap={3}>
<When condition={isPPC}>
<Labeled label="Total Number Of Workdays Created" sx={inlineLabelSx}>
<NumberField source="workday_count" emptyText="0" />
</Labeled>
<Labeled label="Self Reported Workdays Created" sx={inlineLabelSx}>
<Labeled label="Workdays Created (Old Calculation)" sx={inlineLabelSx}>
<NumberField source="self_reported_workday_count" emptyText="0" />
</Labeled>
<Labeled label="Workdays Created (New Calculation)" sx={inlineLabelSx}>
<NumberField source="workday_count" emptyText="0" />
</Labeled>
</When>
<Labeled label="Total Number Of Trees Planted" sx={inlineLabelSx}>
<NumberField source="trees_planted_count" emptyText="0" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/nursery/[uuid]/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const NurseryDetailPage = () => {
nursery.framework_key === "ppc"
? t("Priceless Planet Coalition")
: nursery.framework_key === "hbf"
? "HBF"
? "Harit Bharat Fund"
: t("TerraFund")
]}
hasBackButton={false}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/project/[uuid]/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const ProjectDetailPage = () => {
isPPC
? t("Priceless Planet Coalition")
: isHBF
? "HBF"
? "Harit Bharat Fund"
: isTerrafund
? t("TerraFund")
: reportingFramework.name
Expand Down
2 changes: 1 addition & 1 deletion src/pages/site/[uuid]/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const SiteDetailPage = () => {

const subtitles = [
`${t("Organisation")}: ${site.organisation?.name}`,
isPPC ? t("Priceless Planet Coalition") : isHBF ? "HBF" : t("TerraFund")
isPPC ? t("Priceless Planet Coalition") : isHBF ? "Harit Bharat Fund" : t("TerraFund")
];
if (isPPC) {
subtitles.push(t("Site ID: {id}", { id: site.ppc_external_id }));
Expand Down