import React from "react"; import Slider from "react-slick"; import Container from "@material-ui/core/Container"; import { makeStyles } from "@material-ui/core/styles"; import Car from "./Car"; import AddCar from "./AddCar"; const settings = { dots: false, infinite: false, speed: 500, slidesToShow: 5, slidesToScroll: 1, arrows: false, lazyLoad: true, swipeToSlide: true, swipe: true, responsive: [ { breakpoint: 600, settings: { slidesToShow: 1, }, }, ], }; const CarColumns = ({ cars = [] }) => { const classes = useStyles(); return (
{cars.map((car) => ( ))}
); }; const useStyles = makeStyles((theme) => ({ slide: { height: `calc(100vh - ${theme.mixins.toolbar.minHeight}px)`, outline: "none", padding: theme.spacing(2), }, })); export default CarColumns;