From 7df82c4616e31c656d5eb0d128d5c3e48dbb39c6 Mon Sep 17 00:00:00 2001 From: DavidBelisle <79233327+DavidBelisle@users.noreply.github.com> Date: Fri, 11 Nov 2022 22:49:38 -0500 Subject: [PATCH] Faut fixer les appels d'api --- .../src/components/InvoiceItem.js | 12 +++- .../src/components/InvoiceList.js | 3 +- .../grosses-mitaines-ui/src/pages/Invoices.js | 55 ++++++++++++++++++ .../src/pages/MyInvoices.js | 57 +++++++++++++++++++ .../src/stylesheets/site.css | 4 ++ 5 files changed, 127 insertions(+), 4 deletions(-) diff --git a/GrossesMitaines/grosses-mitaines-ui/src/components/InvoiceItem.js b/GrossesMitaines/grosses-mitaines-ui/src/components/InvoiceItem.js index c8ff940..4b21cbe 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/components/InvoiceItem.js +++ b/GrossesMitaines/grosses-mitaines-ui/src/components/InvoiceItem.js @@ -1,4 +1,7 @@ -const InvoiceItem = ({ invoice }) => { +import { faTimes } from "@fortawesome/free-solid-svg-icons"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; + +const InvoiceItem = ({ invoice, onCancel }) => { const productTotal = (p) => { return (p.quantity * (p.product.status == 3 || p.product.status == 4 ? p.product.promoPrice : p.product.price)) @@ -79,7 +82,6 @@ const InvoiceItem = ({ invoice }) => { } } - return (
@@ -101,7 +103,11 @@ const InvoiceItem = ({ invoice }) => {
-

Produits

+
+

Produits

+

onCancel(invoice.id)} />

+