diff --git a/app/src/frontend/building/data-containers/community.tsx b/app/src/frontend/building/data-containers/community.tsx index a95434da..aa78a6c0 100644 --- a/app/src/frontend/building/data-containers/community.tsx +++ b/app/src/frontend/building/data-containers/community.tsx @@ -18,6 +18,22 @@ import { MultiDataEntry } from '../data-components/multi-data-entry/multi-data-e * Community view/edit section */ const CommunityView: React.FunctionComponent = (props) => { + const switchToLikesMapStyle = (e) => { + e.preventDefault(); + props.onMapColourScale('likes') + } + const switchToLocalSignificanceMapStyle = (e) => { + e.preventDefault(); + props.onMapColourScale('community_local_significance_total') + } + const switchToExpectedApplicationMapStyle = (e) => { + e.preventDefault(); + props.onMapColourScale('community_expected_planning_application_total') + } + const switchToPublicOwnershipMapStyle = (e) => { + e.preventDefault(); + props.onMapColourScale('community_in_public_ownership') + } const worthKeepingReasonsNonEmpty = Object.values(props.building.community_type_worth_keeping_reasons ?? {}).some(x => x); return <> @@ -38,6 +54,9 @@ const CommunityView: React.FunctionComponent = (props) => { copy={props.copy} /> + = (props) => { mode={props.mode} copy={props.copy} /> - + = (props) => { mode={props.mode} copy={props.copy} /> + You can click and colour any other building on the map as well. @@ -150,6 +174,9 @@ const CommunityView: React.FunctionComponent = (props) => { mode={props.mode} copy={props.copy} /> +