add Fragment inside extension logic

This commit is contained in:
Ed Chalstrey 2022-06-06 10:20:44 +01:00
parent 8af1f03176
commit f748948e95

View File

@ -33,6 +33,7 @@ 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}
@ -53,7 +54,9 @@ 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}
@ -66,6 +69,7 @@ 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'