Skip to content

Commit c25acf7

Browse files
susilnemshreeyash07
authored andcommitted
fix(dref): Add people assisted fields in the export of dref final report
1 parent b225602 commit c25acf7

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

app/src/views/DrefFinalReportExport/i18n.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"hasChildProtectionPolicy": "Does your National Society have child protection/child safeguarding policy?",
2323
"hasWhistleblowerProtectionPolicy": "Does your National Society have whistleblower protection policy?",
2424
"hasAntiSexualHarassmentPolicy": "Does your National Society have anti-sexual harassment policy?",
25-
"peopleAssistedLabel": "Total Assisted Population",
25+
"peopleAssistedLabel": "People Assisted",
26+
"totalAssistedPopulationLabel": "Total Assisted Population",
2627
"peopleSuffix": " people",
2728
"operationStartDateLabel": "Operation Start Date",
2829
"operationTimeframeLabel": "Total Operating Timeframe",

app/src/views/DrefFinalReportExport/index.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,14 @@ export function Component() {
384384
valueType="number"
385385
strongValue
386386
/>
387+
<TextOutput
388+
className={styles.metaItem}
389+
label={strings.peopleAssistedLabel}
390+
value={drefResponse?.num_assisted}
391+
suffix={strings.peopleSuffix}
392+
valueType="number"
393+
strongValue
394+
/>
387395
<TextOutput
388396
className={styles.metaItem}
389397
label={strings.eventOnsetLabel}
@@ -764,9 +772,8 @@ export function Component() {
764772
<div className={styles.emptyBlock} />
765773
<BlockTextOutput
766774
className={styles.metaItem}
767-
label={strings.peopleAssistedLabel}
775+
label={strings.totalAssistedPopulationLabel}
768776
value={drefResponse?.num_assisted}
769-
suffix={strings.peopleSuffix}
770777
valueType="number"
771778
strongValue
772779
/>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parent": "000036-1749640127093.json",
3+
"actions": [
4+
{
5+
"action": "add",
6+
"key": "totalAssistedPopulationLabel",
7+
"namespace": "drefFinalReportExport",
8+
"value": "Total Assisted Population"
9+
},
10+
{
11+
"action": "update",
12+
"key": "peopleAssistedLabel",
13+
"namespace": "drefFinalReportExport",
14+
"newValue": "People Assisted"
15+
}
16+
]
17+
}

0 commit comments

Comments
 (0)