Skip to content

Commit 8b06d25

Browse files
committed
fix(dref-imminent-export): bring back hazard date for v2 exports
1 parent dd4005a commit 8b06d25

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.changeset/nice-regions-spend.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"go-web-app": patch
3+
---
4+
5+
Update Imminent DREF Application export
6+
7+
- Add missing hazard date and risk section
8+
- Improve layout of `Proposed Actions` table

app/src/views/DrefApplicationExport/index.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -419,12 +419,10 @@ export function Component() {
419419
|| anticipatoryActionsDefined
420420
|| isDefined(event_map_file?.file);
421421

422-
const hazardDateAndLocationDefined = (
423-
type_of_dref === DREF_TYPE_IMMINENT && !is_dref_imminent_v2
424-
) && isDefined(hazard_date_and_location);
425-
const hazardRiskDefined = (
426-
type_of_dref === DREF_TYPE_IMMINENT && !is_dref_imminent_v2
427-
) && hazard_vulnerabilities_and_risks;
422+
const hazardDateAndLocationDefined = type_of_dref === DREF_TYPE_IMMINENT
423+
&& isDefined(hazard_date_and_location);
424+
const hazardRiskDefined = type_of_dref === DREF_TYPE_IMMINENT
425+
&& hazard_vulnerabilities_and_risks;
428426

429427
const riskRegions = district_details.map(
430428
(district) => district.name,

app/src/views/DrefApplicationExport/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
.proposed-actions {
263263
display: grid;
264264
grid-gap: var(--go-ui-width-separator-md);
265-
grid-template-columns: 4fr 5fr 5fr 4fr;
265+
grid-template-columns: 3fr 3fr 6fr 2fr;
266266
page-break-inside: avoid;
267267

268268
.action-title-label {

0 commit comments

Comments
 (0)