fix last commit dont use "this"

This commit is contained in:
Ed Chalstrey 2022-06-06 09:53:47 +01:00
parent e48414d647
commit e244826422

View File

@ -20,7 +20,7 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
const currentBuildingConstructionYear = building.date_year || undefined; const currentBuildingConstructionYear = building.date_year || undefined;
return ( return (
<form> <form>
{this.props.building.is_extension == "The main building" ? ( {props.building.is_extension == "The main building" ? (
<Fragment> <Fragment>
<InfoBox msg="Can you help us capture information on who built the current building?"></InfoBox> <InfoBox msg="Can you help us capture information on who built the current building?"></InfoBox>
<SelectDataEntry <SelectDataEntry