diff --git a/app/src/frontend/building/data-containers/community.tsx b/app/src/frontend/building/data-containers/community.tsx index 43fa97ea..839c2ccc 100644 --- a/app/src/frontend/building/data-containers/community.tsx +++ b/app/src/frontend/building/data-containers/community.tsx @@ -20,6 +20,10 @@ import { useDisplayPreferences } from '../../displayPreferences-context'; * Community view/edit section */ const CommunityView: React.FunctionComponent = (props) => { + const switchToIsDomesticMapStyle = (e) => { + e.preventDefault(); + props.onMapColourScale('is_domestic') + } const switchToLikesMapStyle = (e) => { e.preventDefault(); props.onMapColourScale('likes') @@ -62,22 +66,26 @@ const CommunityView: React.FunctionComponent = (props) => { verified_count={props.building.verified.is_domestic} /> Work from home does not count as office and does not make building non-domestic. + {(props.building.is_domestic === "no" || props.building.is_domestic === "mixed") ? - + + onChange={props.onSaveChange} + mode={props.mode} + copy={props.copy} + /> + + : <>} -