Skip to content

Commit 325706b

Browse files
committed
Add CoS updates – HD
1 parent a4acd71 commit 325706b

File tree

5 files changed

+78
-0
lines changed

5 files changed

+78
-0
lines changed

app/src/App/routes/SurgeRoutes.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,20 @@ const surgeCatalogueOtherDisasterRiskReduction = customWrapRoute({
10211021
},
10221022
});
10231023

1024+
const surgeCatalogueOtherHumanitarianDiplomacy = customWrapRoute({
1025+
parent: surgeCatalogueLayout,
1026+
path: 'other/humanitarian-diplomacy',
1027+
component: {
1028+
render: () => import('#views/SurgeCatalogueOtherHumanitarianDiplomacy'),
1029+
props: {},
1030+
},
1031+
wrapperComponent: Auth,
1032+
context: {
1033+
title: 'Humanitarian Diplomacy',
1034+
visibility: 'anything',
1035+
},
1036+
});
1037+
10241038
const surgeCatalogueOtherHumanResources = customWrapRoute({
10251039
parent: surgeCatalogueLayout,
10261040
path: 'other/human-resources',
@@ -1347,6 +1361,7 @@ function DeploymentCatalogueNavigate() {
13471361
other: {
13481362
'civil-military-relations': surgeCatalogueOtherCivilMilitaryRelations,
13491363
'disaster-risk-reduction-drr': surgeCatalogueOtherDisasterRiskReduction,
1364+
'humanitarian-diplomacy': surgeCatalogueOtherHumanitarianDiplomacy,
13501365
'human-resources': surgeCatalogueOtherHumanResources,
13511366
'international-disaster-response-law': surgeCatalogueOtherInternationalDisasterResponseLaw,
13521367
migration: surgeCatalogueOtherMigration,
@@ -1487,6 +1502,7 @@ export default {
14871502
surgeCatalogueWashHwts,
14881503
surgeCatalogueOtherCivilMilitaryRelations,
14891504
surgeCatalogueOtherDisasterRiskReduction,
1505+
surgeCatalogueOtherHumanitarianDiplomacy,
14901506
surgeCatalogueOtherHumanResources,
14911507
surgeCatalogueOtherInternationalDisasterResponseLaw,
14921508
surgeCatalogueOtherMigration,

app/src/views/SurgeCatalogue/i18n.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"catalogueSecurity": "Security",
2222
"catalogueCMR": "Civil Military Relations (CMR)",
2323
"catalogueDDR": "Disaster Risk Reduction (DRR)",
24+
"catalogueHD": "Humanitarian Diplomacy (HD)",
2425
"catalogueHR": "Human Resources (HR)",
2526
"catalogueIDRL": "International Disaster Response Law (IDRL)",
2627
"catalogueMigration": "Migration",

app/src/views/SurgeCatalogue/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
RecoveryIcon,
2727
SafetyAndSecurityIcon,
2828
ShelterIcon,
29+
ShieldCrossFillIcon,
2930
WaterSanitationAndHygieneIcon,
3031
} from '@ifrc-go/icons';
3132
import { NavigationTabList } from '@ifrc-go/ui';
@@ -121,6 +122,13 @@ export function Component() {
121122
<HealthIcon className={styles.icon} />
122123
{strings.catalogueHealth}
123124
</NavigationTab>
125+
<NavigationTab
126+
to="surgeCatalogueOtherHumanitarianDiplomacy"
127+
parentRoute
128+
>
129+
<ShieldCrossFillIcon className={styles.icon} />
130+
{strings.catalogueHD}
131+
</NavigationTab>
124132
<NavigationTab
125133
to="surgeCatalogueOtherHumanResources"
126134
parentRoute
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"namespace": "surgeCatalogueOtherHumanitarianDiplomacy",
3+
"strings": {
4+
"humanHeading": "Humanitarian Diplomacy (HD)",
5+
"overview": "Overview",
6+
"overviewDetail": "Humanitarian Diplomacy (HD) is “persuading decision makers and opinion leaders to act, at all times, in the interests of vulnerable people, and with full respect for fundamental humanitarian principles”. In emergencies, IFRC delegations and NS may require specific surge support to strengthen HD efforts to identify HD issues and provide contextual analysis, draft HD key messages and engagement plan, set up an HD membership coordination system, and engage with external partners and stakeholders.",
7+
"rapidResponse": "Rapid Response Personnel Role Profile",
8+
"rapidResponseDetail": "Details about the expectations for this specialty can be found in the role profile:",
9+
"linkOfficer": "Humanitarian Diplomacy Officer Role Profile"
10+
}
11+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import { useTranslation } from '@ifrc-go/ui/hooks';
2+
3+
import SurgeCatalogueContainer from '#components/domain/SurgeCatalogueContainer';
4+
import SurgeContentContainer from '#components/domain/SurgeContentContainer';
5+
import Link from '#components/Link';
6+
7+
import i18n from './i18n.json';
8+
9+
// eslint-disable-next-line import/prefer-default-export
10+
export function Component() {
11+
const strings = useTranslation(i18n);
12+
13+
return (
14+
<SurgeCatalogueContainer
15+
heading={strings.humanHeading}
16+
>
17+
<SurgeContentContainer
18+
heading={strings.overview}
19+
>
20+
<div>{strings.overviewDetail}</div>
21+
</SurgeContentContainer>
22+
<SurgeContentContainer
23+
heading={strings.rapidResponse}
24+
>
25+
<div>{strings.rapidResponseDetail}</div>
26+
<ul>
27+
<li>
28+
<Link
29+
href="https://ifrcorg.sharepoint.com/:b:/s/IFRCSharing/EaI9xGgLdnxItb4RXU1PGCEBlW_E8nUfxbMIZMGWoqdEHw"
30+
external
31+
withLinkIcon
32+
>
33+
{strings.linkOfficer}
34+
</Link>
35+
</li>
36+
</ul>
37+
</SurgeContentContainer>
38+
</SurgeCatalogueContainer>
39+
);
40+
}
41+
42+
Component.displayName = 'SurgeCatalogueOtherHumanitarianDiplomacy';

0 commit comments

Comments
 (0)