no cookies or api call...

This commit is contained in:
DavidBelisle
2022-11-08 00:34:01 -05:00
parent 28fff14d96
commit 809ce36a1e
5 changed files with 57 additions and 28 deletions

View File

@@ -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>