Revert "add Fragment inside extension logic"

This reverts commit f748948e95.
This commit is contained in:
Ed Chalstrey 2022-06-06 10:22:40 +01:00
parent f748948e95
commit 0bcb13e54f

View File

@ -33,7 +33,6 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
options={dataFields.is_extension.items} options={dataFields.is_extension.items}
/> />
{props.building.is_extension == "The main building" ? ( {props.building.is_extension == "The main building" ? (
<Fragment>
<NumericDataEntry <NumericDataEntry
slug='date_year' slug='date_year'
title={dataFields.extension_year.title} title={dataFields.extension_year.title}
@ -54,9 +53,7 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
user_verified_as={props.user_verified.date_year} user_verified_as={props.user_verified.date_year}
verified_count={props.building.verified.date_year} verified_count={props.building.verified.date_year}
/> />
</Fragment>
) : ( ) : (
<Fragment>
<NumericDataEntry <NumericDataEntry
slug='extension_year' slug='extension_year'
title={dataFields.extension_year.title} title={dataFields.extension_year.title}
@ -69,7 +66,6 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
max={currentYear} max={currentYear}
tooltip={dataFields.extension_year.tooltip_extension} tooltip={dataFields.extension_year.tooltip_extension}
/> />
</Fragment>
)} )}
<SelectDataEntry <SelectDataEntry
slug='developer_type' slug='developer_type'