more
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user