From d6c720f919f8974b32521a55f7fbc4483cd7bd40 Mon Sep 17 00:00:00 2001 From: Wayne Carter Date: Mon, 23 Sep 2024 17:45:15 +1200 Subject: [PATCH] Better version of PDF download function --- .../FreshwaterManagementUnit.tsx | 36 ++++++++++--------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/packages/cccv/src/components/FreshwaterManagementUnit/FreshwaterManagementUnit.tsx b/packages/cccv/src/components/FreshwaterManagementUnit/FreshwaterManagementUnit.tsx index b3c6f207..135a2dc3 100644 --- a/packages/cccv/src/components/FreshwaterManagementUnit/FreshwaterManagementUnit.tsx +++ b/packages/cccv/src/components/FreshwaterManagementUnit/FreshwaterManagementUnit.tsx @@ -37,21 +37,23 @@ const FreshwaterManagementUnit = (details: FmuFullDetailsWithMap) => {
} fileName={fileName}> - {({loading}: BlobProviderParams) => <>} + {({loading}: BlobProviderParams) => (loading ? : + )}
-
-

Overview

-
No overview available

")) }} /> -
+
+

Overview

+
No overview available

"))}}/> +

Contaminants

Freshwater objectives from {fmuName1 || ""} Whaitua Implementation Plan (as at August 2018)

- +
@@ -68,17 +70,17 @@ const FreshwaterManagementUnit = (details: FmuFullDetailsWithMap) => {
) :
} - {implementationIdeas ? ( -
-

Implementation Ideas

-
-
    - {parseHtmlListToArray(implementationIdeas)?.map((idea: string, index) =>
  • {makeSafe(idea)}
  • )} -
-
-
- ) :
} + {implementationIdeas ? ( +
+

Implementation Ideas

+
+
    + {parseHtmlListToArray(implementationIdeas)?.map((idea: string, index) =>
  • {makeSafe(idea)}
  • )} +
+
+
+ ) :
}

About this information