Skip to content

Commit 1d10661

Browse files
committed
Add approximate date of impact to dref application export
1 parent 0b8d11e commit 1d10661

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/views/DrefApplicationExport/i18n.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"drefPublishedLabel": "DREF Published",
2424
"targetedAreasLabel": "Targeted Areas",
2525
"eventDescriptionSectionHeading": "Description of the Event",
26+
"approximateDateOfImpactHeading": "Approximate date of impact",
2627
"whatWhereWhenSectionHeading": "What happened, where and when?",
2728
"situationUpdateSectionHeading": "Provide any updates in the situation since the field report and explain what is expected to happen.",
2829
"anticipatoryActionsHeading": "Why your National Society is acting now and what criteria is used to launch this operation.",

src/views/DrefApplicationExport/index.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,18 @@ export function Component() {
372372
<Heading level={2}>
373373
{strings.eventDescriptionSectionHeading}
374374
</Heading>
375+
{isDefined(drefResponse)
376+
&& drefResponse.type_of_dref === DREF_TYPE_IMMINENT
377+
&& isTruthyString(drefResponse.event_text) && (
378+
<Container
379+
heading={strings.approximateDateOfImpactHeading}
380+
headingLevel={3}
381+
>
382+
<DescriptionText>
383+
{drefResponse.event_text}
384+
</DescriptionText>
385+
</Container>
386+
)}
375387
{isTruthyString(drefResponse?.event_map_file?.file) && (
376388
<Container>
377389
<Image

0 commit comments

Comments
 (0)