render() {
return (
<div className='autopark'>
<div className='autopark__header'>
<div className='autopark-title'>Автопарк</div>
<div className='autopark-categorys'>
<ul>
{this.state.category.map((category, index) => {
return (
<Category
key={index}
category={category}
onChangeCategory={this.changeCategory}
/>
);
})}
</ul>
</div>
</div>
<div className='card-cars'>
{this.state.cars.map((car, index) => {
return (
<Car
key={index}
title={car.title}
category={car.category}
image={car.image}
money={car.money}
checkCar={this.checkCarModalHandler}
data-category={car.category}
/>
);
})}
</div>
</div>
);
}