This commit is contained in:
Kenneth Jannette
2024-01-28 14:44:54 -06:00
parent 3d31d39bf0
commit 393f795745
2 changed files with 71 additions and 24 deletions

View File

@@ -13,22 +13,21 @@ const PaymentModal = ({
paymentData,
paymentfields,
handleChangePaymentInput,
modalText,
orderSummary,
handleSignUp,
setShowPaymentModal,
handleSignup,
selectedPlan,
isAnnual,
fieldsChunkSize,
}) => {
const fieldsChunkSize = 2;
console.log("***", selectedPlan, isAnnual);
return (
<Modal show="true" size="lg">
<Modal.Header closeButton>
<Modal.Title>Enter Payment Information</Modal.Title>
</Modal.Header>
<Modal.Body>
<div className="payment-modal-text-wrapper">{modalText}</div>
<div className="payment-modal-text-wrapper">{orderSummary.plan}</div>
<Form className="payment-form">
{splitEvery(Object.keys(paymentfields), fieldsChunkSize).map(
(names, j) => (