change images, update readme

This commit is contained in:
Raymond
2018-07-05 16:41:28 +01:00
parent eeecbb54ec
commit 4f97c49d2f
19 changed files with 3861 additions and 2811 deletions

View File

@@ -10,11 +10,16 @@ class Home extends Component {
}
render() {
const {products, actions} = this.props
const compareProducts = products.filter(product => product.compare)
const {products, actions} = this.props;
const compareProducts = products.filter(product => product.compare);
return (
<div className="home mt-5">
<div className="row">
<div className="col-12">
<h2 className="mb-3">Compare Products</h2>
</div>
</div>
<ProductList products={products} compare={actions.compare}/>
{compareProducts.length >= 2 &&
<Compare products={compareProducts}/>