no cookies or api call...
This commit is contained in:
@@ -28,8 +28,11 @@ const CartButton = () => {
|
||||
<ModalBody>
|
||||
{productsCount > 0 ?
|
||||
<>
|
||||
<p></p>
|
||||
{cart.items.map((item) => <CartCard product={item}></CartCard>)}
|
||||
<div className="payer">
|
||||
<h className="total">Total: {cart.getTotalCost().toFixed(2)}$ CAD</h>
|
||||
<Button className="payer">Payer</Button>
|
||||
</div>
|
||||
</>
|
||||
:
|
||||
<h1>C'est vide! Rempli le hi hi!</h1>
|
||||
|
||||
Reference in New Issue
Block a user