From 2df30410f92cc81809bfd68df0b7f88381029bdf Mon Sep 17 00:00:00 2001 From: yusmar Date: Thu, 11 Nov 2021 14:53:53 +0700 Subject: [PATCH] buat meet Former-commit-id: d718353f95c5f18e584e54afc4a7064e5ea0979b --- components/Yamaha/Shop/Checkout.js | 45 +++++++++++++++----------------------- pages/yamaha/Shop/Checkout.js | 36 +++++++++++++++++------------- 2 files changed, 39 insertions(+), 42 deletions(-) diff --git a/components/Yamaha/Shop/Checkout.js b/components/Yamaha/Shop/Checkout.js index 172934e..3dba4ea 100644 --- a/components/Yamaha/Shop/Checkout.js +++ b/components/Yamaha/Shop/Checkout.js @@ -12,15 +12,17 @@ import { //library yarn import NumberFormat from 'react-number-format'; -const CheckoutContent = function ({ backend, checkout_product, user, ...props }) { - - console.log(user); - - // const Checkout = checkout_product.map((data) => { - // return ( - - // ) - // }) +const CheckoutContent = function ({ backend, checkout_product, user, provinces, ...props }) { + console.log(provinces); + + const [formValue, setFormValue] = React.useState({ + transaction_id: "", + product_img: "", + product_name: "", + product_color: "", + product_quantity: "", + product_total: "", + }); return ( <> @@ -65,14 +67,8 @@ const CheckoutContent = function ({ backend, checkout_product, user, ...props })
- - -
- -
+ +
@@ -111,19 +107,14 @@ const CheckoutContent = function ({ backend, checkout_product, user, ...props })
-
-
- - -
-
- {/*
@@ -155,7 +146,7 @@ const CheckoutContent = function ({ backend, checkout_product, user, ...props })
- + @@ -198,7 +189,7 @@ const CheckoutContent = function ({ backend, checkout_product, user, ...props }) - + Next Day

Akan diterima pada tanggal 13 - 14 Nov

diff --git a/pages/yamaha/Shop/Checkout.js b/pages/yamaha/Shop/Checkout.js index 75b3260..c8e7ee1 100644 --- a/pages/yamaha/Shop/Checkout.js +++ b/pages/yamaha/Shop/Checkout.js @@ -9,14 +9,14 @@ import CheckoutProduct from "api/shop/checkout"; import Cookies from "cookies"; -const Checkout = function ({ backend, checkout_product, user, ...props }) { +const Checkout = function ({ backend, checkout_product, user, provinces, ...props }) { return ( <> - +