more
This commit is contained in:
@@ -21,6 +21,7 @@ const ConfirmModal = ({
|
|||||||
titleText,
|
titleText,
|
||||||
}) => {
|
}) => {
|
||||||
const title = titleText ? titleText : "Confirmation";
|
const title = titleText ? titleText : "Confirmation";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal show="true" onHide={onCancel} size="lg">
|
<Modal show="true" onHide={onCancel} size="lg">
|
||||||
<Modal.Header closeButton>
|
<Modal.Header closeButton>
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ import Radio from "../../pageElements/Radio";
|
|||||||
import "../../styles/signup.scss";
|
import "../../styles/signup.scss";
|
||||||
import Stripe from "stripe";
|
import Stripe from "stripe";
|
||||||
import { stripeApiKey, marchEmailPrm } from "../../secrets";
|
import { stripeApiKey, marchEmailPrm } from "../../secrets";
|
||||||
|
import ConfirmModal from "../Modals/ConfirmModal";
|
||||||
|
|
||||||
const SignupPage = () => {
|
const SignupPage = () => {
|
||||||
const { isUpgrade, currentPlan } = useParams();
|
const { isUpgrade, currentPlan } = useParams();
|
||||||
@@ -59,7 +60,8 @@ const SignupPage = () => {
|
|||||||
: process.env.REACT_APP_API_PROD;
|
: process.env.REACT_APP_API_PROD;
|
||||||
const [showAddAccount, setShowAddAccount] = useState(false);
|
const [showAddAccount, setShowAddAccount] = useState(false);
|
||||||
const [numberOfAccountsToAdd, setNumberOfAccountsToAdd] = useState();
|
const [numberOfAccountsToAdd, setNumberOfAccountsToAdd] = useState();
|
||||||
const [showPromoModal, setShowPromoModal] = useState("");
|
const [showPromoModal, setShowPromoModal] = useState(false);
|
||||||
|
|
||||||
const handleChangeInput = (e, name) => {
|
const handleChangeInput = (e, name) => {
|
||||||
const newData = handleFormDataChange(e, name, data, signupFields);
|
const newData = handleFormDataChange(e, name, data, signupFields);
|
||||||
if (newData !== null) {
|
if (newData !== null) {
|
||||||
@@ -236,6 +238,12 @@ const SignupPage = () => {
|
|||||||
setShowPaymentModal(true);
|
setShowPaymentModal(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const handleCancelModal = () => {
|
||||||
|
console.log("handleCancelModal");
|
||||||
|
setShowPromoModal(!showPromoModal);
|
||||||
|
setShowSelectPlan(!showSelectPlan);
|
||||||
|
};
|
||||||
|
|
||||||
const handleOpenSelectPlan = (e) => {
|
const handleOpenSelectPlan = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (isBusy) {
|
if (isBusy) {
|
||||||
@@ -246,10 +254,8 @@ const SignupPage = () => {
|
|||||||
if (dataValues === null) {
|
if (dataValues === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
saveLeadData(dataValues);
|
saveLeadData(dataValues);
|
||||||
|
setShowPromoModal(!showPromoModal);
|
||||||
setShowSelectPlan(!showSelectPlan);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleToggle = (e) => {
|
const handleToggle = (e) => {
|
||||||
@@ -660,6 +666,15 @@ const SignupPage = () => {
|
|||||||
) : (
|
) : (
|
||||||
<></>
|
<></>
|
||||||
)}
|
)}
|
||||||
|
{showPromoModal ? (
|
||||||
|
<ConfirmModal
|
||||||
|
titleText="TEST"
|
||||||
|
onCancel={handleCancelModal}
|
||||||
|
buttonLabelText="Enter Code"
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
<></>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user