Fix Historical Maps not working on certain buildings

This commit is contained in:
Mike Simpson 2023-01-09 15:26:29 +00:00
parent 10872b8a45
commit 21d38012f0

View File

@ -245,8 +245,8 @@ const AgeView: React.FunctionComponent<CategoryViewProps> = (props) => {
<InfoBox> <InfoBox>
This section is under development. This section is under development.
</InfoBox> </InfoBox>
<button className="map-switcher-inline btn btn-outline btn-outline-dark" /*onClick={}*/> <button className="map-switcher-inline btn btn-outline btn-outline-dark" onClick={historicDataSwitchOnClick}>
{'Click here for historical maps'} {(historicData === 'enabled')?'Click here to hide historical maps':'Click here to show historical maps'}
</button> </button>
<SelectDataEntry <SelectDataEntry
title={dataFields.historical_status.title} title={dataFields.historical_status.title}