From 2d65372a56d016d40041448fff95bc9e4de4032e Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Wed, 1 Jun 2022 14:08:46 +0100 Subject: [PATCH] add logic based on is_extension --- .../building/data-containers/team.tsx | 58 ++++++++++--------- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/app/src/frontend/building/data-containers/team.tsx b/app/src/frontend/building/data-containers/team.tsx index d835ee3d..014875e5 100644 --- a/app/src/frontend/building/data-containers/team.tsx +++ b/app/src/frontend/building/data-containers/team.tsx @@ -15,35 +15,37 @@ const TeamView: React.FunctionComponent = (props) => { const building = props.building; const currentYear = new Date().getFullYear(); const currentBuildingConstructionYear = building.date_year || undefined; - return ( - - - + if (props.building.is_extension == "The main building"){ + return ( + + + - - - ); + + + ); + }; }; const TeamContainer = withCopyEdit(TeamView);