Skip to content

Commit

Permalink
Merge pull request #144 from wri/release/fascinating-ficus
Browse files Browse the repository at this point in the history
[RELEASE] Fascinating Ficus
  • Loading branch information
roguenet committed May 2, 2024
2 parents 3b942e3 + fad1a8d commit 98848ec
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const nextConfig = {
publicRuntimeConfig: {
TxNativePublicToken: process.env.TRANSIFEX_TOKEN
},
images: { domains: ["s3-eu-west-1.amazonaws.com"] },
images: { domains: process.env.IMAGE_DOMAINS?.split(',') ?? ["s3-eu-west-1.amazonaws.com"] },
// webpack5: true,
webpack(config) {
config.module.rules.push({
Expand Down
5 changes: 5 additions & 0 deletions src/admin/apiProvider/utils/entryFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ export const formatEntryValue = (entry: any) => {
if (isDateType(entry)) {
return convertDateFormat(entry);
}

if (typeof entry === "string") {
return entry.replaceAll("\n", "<br />");
}

return entry;
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/elements/Cards/ProjectCard/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const ProjectCard = ({ project, onDelete, title, children, className, ...rest }:
{project.framework_key === "ppc"
? t("Priceless Planet Coalition")
: project.framework_key === "terrafund"
? t("Terrafund")
? t("TerraFund")
: project.framework_key}
</Text>
</div>
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 @@ -106,7 +106,7 @@ const ProjectDetailPage = () => {
title={project.name}
subtitles={[
`${t("Organisation")}: ${project.organisation?.name}`,
isPPC ? t("Priceless Planet Coalition") : isTerrafund ? t("Terrafund") : reportingFramework.name
isPPC ? t("Priceless Planet Coalition") : isTerrafund ? t("TerraFund") : reportingFramework.name
]}
hasBackButton={false}
>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/reports/nursery-report/[uuid].page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const NurseryReportDetailPage = () => {
title={reportTitle}
subtitles={[
`${t("Organisation")}: ${nurseryReport.organisation?.name}`,
nurseryReport.framework_key === "ppc" ? t("Priceless Planet Coalition") : t("Terrafund")
nurseryReport.framework_key === "ppc" ? t("Priceless Planet Coalition") : t("TerraFund")
]}
hasBackButton={false}
>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/reports/project-report/[uuid].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const ProjectReportDetailPage = () => {
<PageHeader
className="h-[203px]"
title={reportTitle}
subtitles={[report.project?.name, isPPC ? t("Priceless Planet Coalition") : t("Terrafund")]}
subtitles={[report.project?.name, isPPC ? t("Priceless Planet Coalition") : t("TerraFund")]}
hasBackButton={false}
>
<If condition={report?.status === "started"}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/reports/site-report/[uuid].page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const SiteReportDetailPage = () => {
title={reportTitle}
subtitles={[
`${t("Organisation")}: ${siteReport.organisation?.name}`,
isPPC ? t("Priceless Planet Coalition") : t("Terrafund")
isPPC ? t("Priceless Planet Coalition") : t("TerraFund")
]}
hasBackButton={false}
>
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 @@ -96,7 +96,7 @@ const SiteDetailPage = () => {
title={site.name}
subtitles={[
`${t("Organisation")}: ${site.organisation?.name}`,
isPPC ? t("Priceless Planet Coalition") : t("Terrafund")
isPPC ? t("Priceless Planet Coalition") : t("TerraFund")
]}
hasBackButton={false}
>
Expand Down

0 comments on commit 98848ec

Please sign in to comment.