Skip to content

Commit

Permalink
Add map title
Browse files Browse the repository at this point in the history
  • Loading branch information
barshathakuri authored and samshara committed Oct 11, 2023
1 parent 7c5a345 commit 6889f73
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/App/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const rootLayout = customWrapRoute({
},
wrapperComponent: Auth,
context: {
title: 'IFRC Go',
title: 'IFRC GO',
visibility: 'anything',
},
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/GlobalFooter/i18n.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"namespace": "common",
"strings": {
"footerAboutGo":"About Go",
"footerAboutGo":"About GO",
"footerAboutGoDesc":"IFRC GO is a Red Cross Red Crescent platform to connect information on emergency needs with the right response.",
"footerFindOutMore":"Find out more",
"footerHelpfulLinks":"Helpful links",
Expand Down
3 changes: 2 additions & 1 deletion src/views/CountryThreeWProjects/Map/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"threeWMapLastUpdate": "Last Update",
"threeWMapStatus": "Status",
"threeWMapProgrammeType": "Programme Type",
"threeWMapBudget": "Budget"
"threeWMapBudget": "Budget",
"threeWMapTitle": "Projects in {countryName}"
}
}
5 changes: 5 additions & 0 deletions src/views/CountryThreeWProjects/Map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { type GoApiResponse } from '#utils/restRequest';
import { type CountryOutletContext } from '#utils/outletContext';
import useGlobalEnums from '#hooks/domain/useGlobalEnums';
import useTranslation from '#hooks/useTranslation';
import { resolveToString } from '#utils/translation';

import {
getPointCirclePaint,
Expand Down Expand Up @@ -338,6 +339,10 @@ function CountryThreeWMap(props: Props) {
>
<MapContainerWithDisclaimer
className={styles.mapContainer}
title={resolveToString(
strings.threeWMapTitle,
{ countryName: countryResponse?.name ?? '-' },
)}
footer={operationTypeOptions && operationTypeOptions.length > 0 && (
<div className={styles.legend}>
{operationTypeOptions.map((d) => (
Expand Down
1 change: 0 additions & 1 deletion src/views/CountryThreeWProjects/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"totalProjectsTitle": "Total Projects",
"ongoingProjectBudgetTitle": "Total Budget (CHF) for Ongoing Projects",
"threeWOngoingProjectsTitle": "Ongoing Projects",
"exportProjects": "Export",
"viewAllProjects": "View All Projects",
"threeWInCountryMapSidebarTitle": "Projects by Province",
"provinceProjects": "{provinceName} ({numProjects} Projects)",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"namespace": "fieldReportDetails",
"strings": {
"earlyPotentiallyAffectedRCLabel": "Potentiall Affected (RC)",
"earlyPotentiallyAffectedRCLabel": "Potentially Affected (RC)",
"earlyPotentiallyAffectedGovernmentLabel": "Potentially Affected (Government)",
"earlyPotentiallyAffectedOtherLabel": "Potentially Affected (Other)",
"earlyPeopleAtHighestRiskRcLabel": "People at Highest Risk (RC)",
Expand Down
3 changes: 2 additions & 1 deletion src/views/GlobalThreeW/Map/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"multipleTypesLegend": "Multiple types",
"ongoingProjectsMap": "Ongoing Projects",
"mapTargetedPopulation": "Targeted Population",
"mapTopProjectSectors": "Top Project Sectors"
"mapTopProjectSectors": "Top Project Sectors",
"mapNSOngoingProjects": "NS Ongoing Projects"
}
}
1 change: 1 addition & 0 deletions src/views/GlobalThreeW/Map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ function GlobalThreeWMap(props: Props) {
>
<MapContainerWithDisclaimer
className={_cs(styles.mapContainer, className)}
title={strings.mapNSOngoingProjects}
footer={operationTypeOptions && (
<div className={styles.legend}>
{operationTypeOptions.map((d) => (
Expand Down
6 changes: 3 additions & 3 deletions src/views/Resources/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"aboutResourcesTitle": "IFRC GO - About",
"aboutResources": "Resources",
"resourcesDescription": "GO is a Red Cross Red Crescent platform to connect information on emergency needs with the right response.",
"goUserGuidance": "Go user guidance",
"goReferenceMaterial": "Go Reference Material",
"goUserAdminGuide": "Go User and Administrative Guide",
"goUserGuidance": "GO user guidance",
"goReferenceMaterial": "GO Reference Material",
"goUserAdminGuide": "GO User and Administrative Guide",
"goUserAdministrativeGuide": "User guides help to explain the different functions and features of GO. Administrator guides include also back-end functions aimed at people who are helping to manage the site.",
"goUserReferenceMaterial": "These materials provide more information on how and why GO does what it does.",
"aboutGoUserLibrary": "GO User Library",
Expand Down
2 changes: 1 addition & 1 deletion src/views/SurgeOverview/SurgeMap/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"deployedPersonnel": "Deployed Personnel",
"surgeEruOnly": "ERU Only",
"surgePersonnelOnly": "Rapid Response Only",
"surgeDownloadMapTitle": "Emergencies",
"surgeDownloadMapTitle": "Rapid Response deployments",
"eruAndPersonnel": "ERUs & Rapid Response",
"eruLabel": "ERU",
"personnelLabel": "Rapid Response Personnel",
Expand Down

0 comments on commit 6889f73

Please sign in to comment.