tweak situation description

This commit is contained in:
Mateusz Konieczny 2022-12-06 17:31:56 +01:00
parent b8339f1588
commit 583d18b3d4

View File

@ -51,7 +51,7 @@ const LongText = ({ content,limit}) => {
</div> </div>
} }
const Disclaimer = () => { return <Fragment><div><u>Disclaimer</u>: these data are currently incomplete and also often do not provide information on minor alterations. For comprehensive information on all applications please visit the local authorities' planning websites.</div></Fragment> } const Disclaimer = () => { return <Fragment><div><u>Disclaimer</u>: Not all applications for London are displayed. Some boroughs do not yet provide planning data to the GLA. For comprehensive information on applications please visit the relevant local authority's planning website.</div></Fragment> }
const MissingData = "not provided by data source" const MissingData = "not provided by data source"
@ -100,10 +100,13 @@ const PlanningDataOfficialDataEntry: React.FC<PlanningDataOfficialDataEntryProps
} }
return <> return <>
<InfoBox type='success'> <InfoBox type='success'>
{/* TODO: data[0] is problematic here... Compute it from listed elements and show all distinct variants? Error if they are not distinct? Hardcode it? */}
<div>
Planning application status is streamed using live data uploaded by local authorities to {data[0]["data_source_link"] ? <a href={data[0]["data_source_link"]}>{data[0]["data_source"]}</a> : data[0]["data_source"] }.
</div>
<Disclaimer /> <Disclaimer />
<br/> <br/>
{/* TODO: data[0] is problematic here... Compute it from listed elements and show all distinct variants? Error if they are not distinct? Hardcode it? */} </InfoBox>
<div>Planning application status is streamed using live data uploaded by local authorities to the {data[0]["data_source_link"] ? <a href={data[0]["data_source_link"]}>{data[0]["data_source"]}</a> : data[0]["data_source"] }.</div> </InfoBox>
{data.map((item) => ( {data.map((item) => (
<Fragment> <Fragment>
<InfoBox type='info'> <InfoBox type='info'>