{this.state.units != null && this.state.buildings != null ?
{this.state.buildings.buildings.map(building => Building(building, this.props.modId, this.props.raceId))}
}
aria-controls="units-accordion"
id="units-accordion"
>
All units
Infantry
{this.state.units.infantry.map(unit => Unit(unit, this.props.modId, this.props.raceId))}
Tech
{this.state.units.tech.map(unit => Unit(unit, this.props.modId, this.props.raceId))}
Support
{this.state.units.support.map(unit => Unit(unit, this.props.modId, this.props.raceId))}
: "Loading"}
)
} else {
return "Loading...";
}
}
}
class RacePageFast extends React.Component