This commit is contained in:
Kenneth Jannette
2024-01-19 19:51:26 -06:00
parent 74606afc72
commit 39852a5915
2 changed files with 31 additions and 34 deletions

View File

@@ -20,8 +20,15 @@ const PaymentModal = ({
}) => { }) => {
const fieldsChunkSize = 2; const fieldsChunkSize = 2;
const ModalForm = () => { return (
return splitEvery(Object.keys(paymentfields), fieldsChunkSize).map( <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>
<Form className="payment-form">
{splitEvery(Object.keys(paymentfields), fieldsChunkSize).map(
(names, j) => ( (names, j) => (
<Row key={`row${j}-modal`}> <Row key={`row${j}-modal`}>
{names.map((name, i) => ( {names.map((name, i) => (
@@ -49,18 +56,7 @@ const PaymentModal = ({
))} ))}
</Row> </Row>
) )
); )}
};
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>
<Form className="payment-form">
<ModalForm />
</Form> </Form>
</Modal.Body> </Modal.Body>
<Modal.Footer> <Modal.Footer>

View File

@@ -116,11 +116,12 @@ const SignupPage = () => {
if (isBusy) { if (isBusy) {
return; return;
} }
/*
const dataValues = validateData(); const dataValues = validateData();
if (dataValues === null) { if (dataValues === null) {
return; return;
} }
*/
setShowPaymentModal(true); setShowPaymentModal(true);
}; };