@@ -14,6 +14,7 @@ import Image from '#components/printable/Image';
1414import Heading from '#components/printable/Heading' ;
1515import Link from '#components/printable/Link' ;
1616
17+ import DateOutput from '#components/DateOutput' ;
1718import DescriptionText from '#components/printable/DescriptionText' ;
1819import NumberOutput from '#components/NumberOutput' ;
1920import useTranslation from '#hooks/useTranslation' ;
@@ -144,9 +145,15 @@ export function Component() {
144145 const imagesFileDefined = isDefined ( drefResponse )
145146 && isDefined ( drefResponse . images_file )
146147 && drefResponse . images_file . length > 0 ;
148+ const eventDateDefined = drefResponse ?. type_of_dref !== DREF_TYPE_IMMINENT
149+ && isDefined ( drefResponse ?. event_date ) ;
150+ const eventTextDefined = drefResponse ?. type_of_dref === DREF_TYPE_IMMINENT
151+ && isDefined ( drefResponse ?. event_text ) ;
147152 const showEventDescriptionSection = eventDescriptionDefined
148153 || eventScopeDefined
149154 || imagesFileDefined
155+ || eventDateDefined
156+ || eventTextDefined
150157 || isDefined ( drefResponse ?. event_map_file ?. file ) ;
151158
152159 const ifrcActionsDefined = isTruthyString ( drefResponse ?. ifrc ?. trim ( ) ) ;
@@ -394,6 +401,20 @@ export function Component() {
394401 />
395402 </ Container >
396403 ) }
404+ { eventTextDefined && (
405+ < Container heading = { strings . approximateDateOfImpactHeading } >
406+ < DescriptionText >
407+ { drefResponse . event_text }
408+ </ DescriptionText >
409+ </ Container >
410+ ) }
411+ { eventDateDefined && (
412+ < Container heading = { strings . dateWhenTheTriggerWasMetHeading } >
413+ < DateOutput
414+ value = { drefResponse ?. event_date }
415+ />
416+ </ Container >
417+ ) }
397418 { eventDescriptionDefined && (
398419 < Container
399420 heading = { drefResponse ?. type_of_dref === DREF_TYPE_IMMINENT
0 commit comments