add Fragment inside extension logic
This commit is contained in:
parent
8af1f03176
commit
f748948e95
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user