diff --git a/app/src/frontend/building/data-containers/community.tsx b/app/src/frontend/building/data-containers/community.tsx index 45aee4d2..2b137ca7 100644 --- a/app/src/frontend/building/data-containers/community.tsx +++ b/app/src/frontend/building/data-containers/community.tsx @@ -7,7 +7,6 @@ import { MultiSelectDataEntry } from '../data-components/multi-select-data-entry import { DataEntryGroup } from '../data-components/data-entry-group'; import { CategoryViewProps } from './category-view-props'; -import InfoBox from '../../components/info-box'; import { LogicalDataEntry, LogicalDataEntryYesOnlyWithExplanation } from '../data-components/logical-data-entry/logical-data-entry'; import { buildingUserFields, dataFields } from '../../config/data-fields-config'; @@ -47,9 +46,7 @@ const CommunityView: React.FunctionComponent = (props) => {
- { - - (props.building.is_domestic === "no" || props.building.is_domestic === "mixed domestic/non-domestic") ? + {(props.building.is_domestic === "no" || props.building.is_domestic === "mixed domestic/non-domestic") ? <> = (props) => { mode={props.mode} copy={props.copy} /> - - : <>} - - + : + <> + } = (props) => { mode={props.mode} /> + {(props.mapColourScale == "typology_likes") ? + + : + + } { props.building.community_type_worth_keeping === true && = (props) => { mode={props.mode} /> } - { - /* - - */ - }
- - = (props) => { copy={props.copy} /> {(props.mapColourScale == "community_local_significance_total") ? - + : - + } -
= (props) => { copy={props.copy} /> {(props.mapColourScale == "community_expected_planning_application_total") ? - + : - + } - -
@@ -186,17 +177,6 @@ const CommunityView: React.FunctionComponent = (props) => { onChange={props.onChange} mode={props.mode} /> - {/* TODO: dates */} - { - // props.building.community_activities === true && - // - //
- //
- //
- //
- //
- } - = (props) => { copy={props.copy} /> + slug="community_public_ownership" + allow_verify={props.user !== undefined && props.building.community_public_ownership !== null && !props.edited} + onVerify={props.onVerify} + user_verified={props.user_verified.hasOwnProperty("community_public_ownership")} + user_verified_as={props.user_verified.community_public_ownership} + verified_count={props.building.verified.community_public_ownership} + /> = (props) => { copy={props.copy} /> + slug="community_public_ownership_sources" + allow_verify={props.user !== undefined && props.building.community_public_ownership_sources !== null && !props.edited} + onVerify={props.onVerify} + user_verified={props.user_verified.hasOwnProperty("community_public_ownership_sources")} + user_verified_as={props.user_verified.community_public_ownership_sources} + verified_count={props.building.verified.community_public_ownership_sources} + /> {(props.mapColourScale == "community_in_public_ownership") ? - + : - + }