Commit b125e520 authored by Ben Anderson's avatar Ben Anderson

Added Heading to products page

parent e269419a
import React from 'react' import React from "react";
import Product from './Product.jsx' import Product from "./Product.jsx";
import { Col, Container, Row } from 'react-bootstrap'; import { Col, Container, Row } from "react-bootstrap";
import './../styles/ProductGrid.css' import "./../styles/ProductGrid.css";
export default function ProductGrid({productData}) { export default function ProductGrid({ productData }) {
return ( return (
//uses react bootstrap components <div>
<Container id="prod-grid" > <h1 id="title" className="text-center" >Inventory</h1>
<Container id="prod-grid" className="mt-3">
<Row xs={1} sm={2} md={3} lg={4}> <Row xs={1} sm={2} md={3} lg={4}>
{productData.map((product) => { {productData.map((product) => {
return ( return (
<Col key={product.sku}> <Col key={product.sku}>
<Product product={product}/> <Product product={product} />
</Col> </Col>
) );
})} })}
</Row> </Row>
</Container> </Container>
</div>
//uses vanilla bootstrap //uses vanilla bootstrap
// <div> // <div>
...@@ -34,6 +35,5 @@ export default function ProductGrid({productData}) { ...@@ -34,6 +35,5 @@ export default function ProductGrid({productData}) {
// </div> // </div>
// </div> // </div>
// </div> // </div>
) );
} }
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment