diff --git a/app/src/frontend/building/data-containers/team.tsx b/app/src/frontend/building/data-containers/team.tsx index c9c6785f..276184ab 100644 --- a/app/src/frontend/building/data-containers/team.tsx +++ b/app/src/frontend/building/data-containers/team.tsx @@ -18,8 +18,9 @@ const TeamView: React.FunctionComponent = (props) => { const building = props.building; const currentYear = new Date().getFullYear(); const currentBuildingConstructionYear = building.date_year || undefined; - if (props.building.is_extension == "The main building"){ return ( +
+ {this.props.building.is_extension == "The main building" ? ( = (props) => { mode={props.mode} /> - ); - }; - return ( // This is what gets used when is_extension == "A major extension" - - - + + + + - - - + - - + + + - - - - - -); + onChange={props.onChange} + mode={props.mode} + /> + + )} +
+ ); }; const TeamContainer = withCopyEdit(TeamView);