|
@@ -12,15 +12,17 @@ import { |
|
|
//library yarn |
|
|
//library yarn |
|
|
import NumberFormat from 'react-number-format'; |
|
|
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 ( |
|
|
return ( |
|
|
<> |
|
|
<> |
|
@@ -65,14 +67,8 @@ const CheckoutContent = function ({ backend, checkout_product, user, ...props }) |
|
|
|
|
|
|
|
|
<div className="col-lg-6 col-md-6"> |
|
|
<div className="col-lg-6 col-md-6"> |
|
|
<div className="form-group"> |
|
|
<div className="form-group"> |
|
|
<label>Alamat Sebagai <span className="required">*</span></label> |
|
|
|
|
|
|
|
|
|
|
|
<div className="select-box"> |
|
|
|
|
|
<select className="form-select"> |
|
|
|
|
|
<option value="1">Rumah</option> |
|
|
|
|
|
<option value="2">Kantor</option> |
|
|
|
|
|
</select> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<label>Kode Pos <span className="required">*</span></label> |
|
|
|
|
|
<input type="text" className="form-control" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
@@ -111,19 +107,14 @@ const CheckoutContent = function ({ backend, checkout_product, user, ...props }) |
|
|
|
|
|
|
|
|
<div className="select-box"> |
|
|
<div className="select-box"> |
|
|
<select className="form-select"> |
|
|
<select className="form-select"> |
|
|
<option value="1">Indonesia</option> |
|
|
|
|
|
|
|
|
{/* {provinces["provinsi"].map((option) => ( |
|
|
|
|
|
<option value={option.id}>{option.nama}</option> |
|
|
|
|
|
))} */} |
|
|
</select> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div className="col-lg-6 col-md-6"> |
|
|
|
|
|
<div className="form-group"> |
|
|
|
|
|
<label>Postcode / Zip <span className="required">*</span></label> |
|
|
|
|
|
<input type="text" className="form-control" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{/* <div className="col-lg-12 col-md-12"> |
|
|
{/* <div className="col-lg-12 col-md-12"> |
|
|
<div className="form-check"> |
|
|
<div className="form-check"> |
|
|
<input type="checkbox" className="form-check-input" id="create-an-account" /> |
|
|
<input type="checkbox" className="form-check-input" id="create-an-account" /> |
|
@@ -155,7 +146,7 @@ const CheckoutContent = function ({ backend, checkout_product, user, ...props }) |
|
|
<div className="services-details"> |
|
|
<div className="services-details"> |
|
|
<div className="services-details-desc"> |
|
|
<div className="services-details-desc"> |
|
|
<div className="services-details-accordion"> |
|
|
<div className="services-details-accordion"> |
|
|
<Accordion allowZeroExpanded preExpanded={['a']}> |
|
|
|
|
|
|
|
|
<Accordion> |
|
|
<AccordionItem uuid="a"> |
|
|
<AccordionItem uuid="a"> |
|
|
<AccordionItemHeading> |
|
|
<AccordionItemHeading> |
|
|
<AccordionItemButton> |
|
|
<AccordionItemButton> |
|
@@ -198,7 +189,7 @@ const CheckoutContent = function ({ backend, checkout_product, user, ...props }) |
|
|
|
|
|
|
|
|
<AccordionItem uuid="c"> |
|
|
<AccordionItem uuid="c"> |
|
|
<AccordionItemHeading> |
|
|
<AccordionItemHeading> |
|
|
<AccordionItemButton> |
|
|
|
|
|
|
|
|
<AccordionItemButton> |
|
|
<span> Next Day </span><br /> |
|
|
<span> Next Day </span><br /> |
|
|
<p style={{ marginLeft: "25px" }}> |
|
|
<p style={{ marginLeft: "25px" }}> |
|
|
Akan diterima pada tanggal 13 - 14 Nov <br /> </p> |
|
|
Akan diterima pada tanggal 13 - 14 Nov <br /> </p> |
|
|