From 595b6d980c483991b24572210d07a6203fa44d62 Mon Sep 17 00:00:00 2001 From: DavidBelisle <79233327+DavidBelisle@users.noreply.github.com> Date: Mon, 12 Dec 2022 12:27:26 -0500 Subject: [PATCH] FirstPart --- .../src/components/InvoiceItem.js | 19 ++++++++++++++----- .../src/components/InvoiceList.js | 3 ++- .../grosses-mitaines-ui/src/pages/Invoices.js | 1 + .../src/pages/MyInvoices.js | 2 +- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/GrossesMitaines/grosses-mitaines-ui/src/components/InvoiceItem.js b/GrossesMitaines/grosses-mitaines-ui/src/components/InvoiceItem.js index 678e525..354c524 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/components/InvoiceItem.js +++ b/GrossesMitaines/grosses-mitaines-ui/src/components/InvoiceItem.js @@ -1,7 +1,8 @@ import { faTimes } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { weight } from "fontawesome"; -const InvoiceItem = ({ invoice, onCancel }) => { +const InvoiceItem = ({ invoice, onCancel, paymentInfos }) => { const productTotal = (p) => { return (p.quantity * (p.product.status == 3 || p.product.status == 4 ? p.product.promoPrice : p.product.price)) @@ -81,9 +82,8 @@ const InvoiceItem = ({ invoice, onCancel }) => { ) } } - + console.log(invoice); return ( -