From 9c0b961d7afa0a8e74abdbc66a99c2634dd22d2c Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Wed, 14 Sep 2022 16:38:46 +0200 Subject: [PATCH] link Community section from Planning section --- .../frontend/building/data-containers/planning.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/src/frontend/building/data-containers/planning.tsx b/app/src/frontend/building/data-containers/planning.tsx index 7926ce10..ed28aad1 100644 --- a/app/src/frontend/building/data-containers/planning.tsx +++ b/app/src/frontend/building/data-containers/planning.tsx @@ -1,5 +1,6 @@ import React, { Fragment } from 'react'; +import { Link } from 'react-router-dom'; import InfoBox from '../../components/info-box'; import CheckboxDataEntry from '../data-components/checkbox-data-entry'; import NumericDataEntryWithFormattedLink from '../data-components/numeric-data-entry-with-formatted-link'; @@ -15,10 +16,13 @@ import withCopyEdit from '../data-container'; import PlanningDataOfficialDataEntry from '../data-components/planning-data-entry'; import { CategoryViewProps } from './category-view-props'; +import { Category } from '../../config/categories-config'; const currentYear = new Date().getFullYear(); -const PlanningView: React.FunctionComponent = (props) => ( +const PlanningView: React.FunctionComponent = (props) => { + const communityLinkUrl = `/${props.mode}/${Category.Community}/${props.building.building_id}`; + return ( This section is under development as part of the project CLPV Tool. For more details and progress read here. @@ -52,6 +56,11 @@ const PlanningView: React.FunctionComponent = (props) => ( mode={props.mode} copy={props.copy} /> + + + To see more crowdsourced visit Community section. + + = (props) => ( -); +)}; const PlanningContainer = withCopyEdit(PlanningView); export default PlanningContainer;