Your shopping cart
{nodes}
diff --git a/src/components/Product.js b/src/components/Product.js
index 2a0b3f1..712a8fd 100644
--- a/src/components/Product.js
+++ b/src/components/Product.js
@@ -2,20 +2,20 @@ import React from "react";
import PropTypes from "prop-types";
const Product = ({ price, quantity, title, discount }) => (
-
+
{title} - {price}
{quantity ? ` x ${quantity}` : null}
{discount
? ` - discount: buy ${discount.get}, pay for ${discount.pay}`
: null}
-
+
);
Product.propTypes = {
price: PropTypes.number,
quantity: PropTypes.number,
title: PropTypes.string,
- discount: PropTypes.object
+ discount: PropTypes.object,
};
export default Product;
diff --git a/src/components/ProductItem.js b/src/components/ProductItem.js
index 7ac0e01..7866c26 100644
--- a/src/components/ProductItem.js
+++ b/src/components/ProductItem.js
@@ -4,8 +4,14 @@ import Product from "./Product";
const ProductItem = ({ product, discount, onAddToCartClicked }) => (
-
+