@@ -13,7 +13,7 @@ import TextOutput, { type Props as TextOutputProps } from '#components/printable
1313import Image from '#components/printable/Image' ;
1414import Heading from '#components/printable/Heading' ;
1515import DescriptionText from '#components/printable/DescriptionText' ;
16- import Link from '#components/Link' ;
16+ import Link from '#components/printable/ Link' ;
1717import DateOutput from '#components/DateOutput' ;
1818import useTranslation from '#hooks/useTranslation' ;
1919import { useRequest } from '#utils/restRequest' ;
@@ -383,6 +383,8 @@ export function Component() {
383383 valueClassName = { _cs (
384384 isDefined ( drefResponse )
385385 && isDefined ( drefResponse . disaster_category )
386+ // FIXME: empty string in enum
387+ && drefResponse . disaster_category !== ''
386388 && colorMap [ drefResponse . disaster_category ] ,
387389 ) }
388390 strongValue
@@ -468,11 +470,7 @@ export function Component() {
468470 </ Heading >
469471 { drefResponse ?. disaster_category_analysis_details ?. file && (
470472 < Container >
471- < Link
472- href = { drefResponse ?. disaster_category_analysis_details ?. file }
473- external
474- withUnderline
475- >
473+ < Link href = { drefResponse ?. disaster_category_analysis_details ?. file } >
476474 { strings . crisisCategorySupportingDocumentLabel }
477475 </ Link >
478476 </ Container >
@@ -551,11 +549,7 @@ export function Component() {
551549 ) }
552550 { drefResponse ?. supporting_document_details ?. file && (
553551 < Container >
554- < Link
555- href = { drefResponse ?. supporting_document_details ?. file }
556- external
557- withUnderline
558- >
552+ < Link href = { drefResponse ?. supporting_document_details ?. file } >
559553 { strings . drefApplicationSupportingDocumentation }
560554 </ Link >
561555 </ Container >
@@ -581,11 +575,7 @@ export function Component() {
581575 </ div >
582576 </ DescriptionText >
583577 < DescriptionText className = { styles . link } >
584- < Link
585- href = { source . source_link }
586- external
587- withUnderline
588- >
578+ < Link href = { source . source_link } >
589579 { source ?. source_link }
590580 </ Link >
591581 </ DescriptionText >
@@ -793,11 +783,7 @@ export function Component() {
793783 ) }
794784 { assessmentReportDefined && (
795785 < Container >
796- < Link
797- href = { drefResponse ?. assessment_report_details ?. file }
798- external
799- withUnderline
800- >
786+ < Link href = { drefResponse ?. assessment_report_details ?. file } >
801787 { strings . drefAssessmentReportLink }
802788 </ Link >
803789 </ Container >
@@ -837,10 +823,7 @@ export function Component() {
837823 { targetingStrategySupportingDocumentDefined && (
838824 < Container >
839825 < Link
840- className = { styles . targetingStrategyLink }
841826 href = { drefResponse ?. targeting_strategy_support_file_details ?. file }
842- external
843- withUnderline
844827 >
845828 { strings . targetingStrategySupportingDocument }
846829 </ Link >
@@ -1121,11 +1104,7 @@ export function Component() {
11211104 />
11221105 </ Container >
11231106 < Container >
1124- < Link
1125- href = { drefResponse ?. budget_file_details ?. file }
1126- external
1127- withUnderline
1128- >
1107+ < Link href = { drefResponse ?. budget_file_details ?. file } >
11291108 { strings . drefExportDownloadBudget }
11301109 </ Link >
11311110 </ Container >
@@ -1182,11 +1161,7 @@ export function Component() {
11821161 />
11831162 ) }
11841163 </ Container >
1185- < Link
1186- href = "/emergencies"
1187- withUnderline
1188- external
1189- >
1164+ < Link href = "/emergencies" >
11901165 { strings . drefExportReference }
11911166 </ Link >
11921167 </ >
0 commit comments