Skip to content

Instantly share code, notes, and snippets.

@Franckapik
Last active February 6, 2020 20:36
Show Gist options
  • Save Franckapik/215bde2edaf5592ca65250627d12b8e4 to your computer and use it in GitHub Desktop.
Save Franckapik/215bde2edaf5592ca65250627d12b8e4 to your computer and use it in GitHub Desktop.
No render at line 32
import React, {Component} from 'react';
import shopStore, {panier, panierOperations} from '../Store/shopStore';
import {view} from 'react-easy-state';
import client from '../Store/client';
class Cart extends Component {
render() {
return (<div className="cart box_light1 center fullsize">
<div className="table ">
<ul>
<li className="table-header">
<div className="col w10">Diffuseur</div>
<div className="col w25">Nom</div>
<div className="col w20">Quantité</div>
{
this.props.prices
?<><div className="col w10">Articles</div>
<div className="col w20">Frais de ports</div>
<div className="col w20">Sous-total</div></>:null}
{
this.props.control
? <div className="col w40">Ajuster</div>: null
}
</li>
{
panier.listeProduits.map((p, i) => {
client.getProductByIdFetch(p.id)
.then(produit => {
console.log(produit);
return "ouhouh"
});
})
}
</ul>
</div>
</div>)
}
}
export default view(Cart);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment