From 69f753c0a4d3d0f6beb5eb371f0cef1c18bf0eba Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Tue, 29 Nov 2022 11:28:04 +0100 Subject: [PATCH] rework disclaimers --- .../data-components/planning-data-entry.tsx | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/app/src/frontend/building/data-components/planning-data-entry.tsx b/app/src/frontend/building/data-components/planning-data-entry.tsx index 8fd0edcf..33e8f18d 100644 --- a/app/src/frontend/building/data-components/planning-data-entry.tsx +++ b/app/src/frontend/building/data-components/planning-data-entry.tsx @@ -78,28 +78,36 @@ const PlanningDataOfficialDataEntry: React.FC + + + No live planning data available currently for this building polygon via the Planning London DataHub.
-
); } else { return ( + + + No live planning data for this date range, but this building has associated planning data now shown here.
-
); } } - return <>{data.map((item) => ( + return <> + + +
+ {/* TODO: data[0] is problematic here... Compute it from listed elements and show all distinct variants? Error if they are not distinct? Hardcode it? */} +
Planning application status is streamed using live data uploaded by local authorities to the {data[0]["data_source_link"] ? {data[0]["data_source"]} : data[0]["data_source"] }.
+ {data.map((item) => ( -
Planning application status is streamed using live data uploaded by local authorities to the {item["data_source_link"] ? {item["data_source"]} : item["data_source"] }.
-
Current planning application status for this site: Address of the location: {ShowIfAvailable(item["address"])}
Most recent update by data provider: {ShowIfAvailable(item["decision_date"])}

-