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