From a8c62a86ab1c1f48021990993d3b4fc0aafc792a Mon Sep 17 00:00:00 2001 From: Victor Turgeon <76506447+Medenos@users.noreply.github.com> Date: Thu, 8 Dec 2022 18:25:49 -0500 Subject: [PATCH] Ajout du nom dans le UI --- .../src/components/PaymentForm.js | 2 ++ .../src/pages/ReviewInvoice.js | 8 ++++---- .../grosses-mitaines-ui/src/stylesheets/site.css | 15 +++++++++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/GrossesMitaines/grosses-mitaines-ui/src/components/PaymentForm.js b/GrossesMitaines/grosses-mitaines-ui/src/components/PaymentForm.js index 072ee4f..d339d67 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/components/PaymentForm.js +++ b/GrossesMitaines/grosses-mitaines-ui/src/components/PaymentForm.js @@ -27,6 +27,7 @@ const CARD_OPTIONS = { const PaymentForm = ({ cost }) => { const [success, setSuccess] = useState(false); + const [cardName, setCardName] = useState(""); const stripe = useStripe(); const elements = useElements(); @@ -82,6 +83,7 @@ const PaymentForm = ({ cost }) => { {!success ?