Created
June 8, 2018 13:16
-
-
Save stefanoverna/e48f843b0fd08eb42e229812398aee35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const IndexPage = ({ data }) => ( | |
<div className="Catalogue"> | |
{ | |
data.products.edges.map(({ node: product }) => ( | |
<div className="Catalogue__item" key={product.id}> | |
<a | |
href="#" | |
className="Product snipcart-add-item" | |
data-item-id={product.slug} | |
data-item-price={product.price} | |
data-item-image={product.image} | |
data-item-name={product.name} | |
data-item-url={`/`} | |
> | |
{ /* ... */ } | |
</a> | |
</div> | |
)) | |
} | |
</div> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment