more
This commit is contained in:
@@ -52,11 +52,11 @@ const PaymentModal = ({
|
|||||||
const totalToday = amountToday + extraAccountsPrice;
|
const totalToday = amountToday + extraAccountsPrice;
|
||||||
|
|
||||||
const handleSignupClick = () => {
|
const handleSignupClick = () => {
|
||||||
paymentfields.forEach((field) => {
|
console.log("----------------------------_>selectedPlan", selectedPlan);
|
||||||
console.log("field", field);
|
console.log("----------------------------_>selectedPlan", selectedPlan);
|
||||||
});
|
|
||||||
handleSignup();
|
handleSignup();
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal show="true" size="lg">
|
<Modal show="true" size="lg">
|
||||||
<Modal.Header className="payment-modal-header" closeButton>
|
<Modal.Header className="payment-modal-header" closeButton>
|
||||||
|
|||||||
@@ -146,6 +146,10 @@ const SignupPage = () => {
|
|||||||
|
|
||||||
const validatePaymentData = () => {
|
const validatePaymentData = () => {
|
||||||
const newPaymentData = getValidatedFormData(paymentData, paymentfields);
|
const newPaymentData = getValidatedFormData(paymentData, paymentfields);
|
||||||
|
console.log(
|
||||||
|
"````````````````````````````````````````newPaymentData",
|
||||||
|
newPaymentData
|
||||||
|
);
|
||||||
const hasErrors = isFormDataHasErrors(newPaymentData);
|
const hasErrors = isFormDataHasErrors(newPaymentData);
|
||||||
setPaymentData(newPaymentData);
|
setPaymentData(newPaymentData);
|
||||||
return hasErrors ? null : objectMap(({ value }) => value, newPaymentData);
|
return hasErrors ? null : objectMap(({ value }) => value, newPaymentData);
|
||||||
@@ -275,7 +279,6 @@ const SignupPage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleAdd = () => {
|
const handleAdd = () => {
|
||||||
//add accounts, close section
|
|
||||||
setShowAddAccount(!showAddAccount);
|
setShowAddAccount(!showAddAccount);
|
||||||
setShowPaymentModal(true);
|
setShowPaymentModal(true);
|
||||||
};
|
};
|
||||||
@@ -382,8 +385,6 @@ const SignupPage = () => {
|
|||||||
// ******************** END STRIPE PAYMENT API CALL ******************** //
|
// ******************** END STRIPE PAYMENT API CALL ******************** //
|
||||||
|
|
||||||
const handleSignup = async (e) => {
|
const handleSignup = async (e) => {
|
||||||
e.preventDefault();
|
|
||||||
|
|
||||||
const paymentDataValues = validatePaymentData();
|
const paymentDataValues = validatePaymentData();
|
||||||
if (paymentDataValues === null) {
|
if (paymentDataValues === null) {
|
||||||
return;
|
return;
|
||||||
@@ -625,6 +626,9 @@ const SignupPage = () => {
|
|||||||
<h5 className="signup-subheader-text">
|
<h5 className="signup-subheader-text">
|
||||||
Select a subscription plan
|
Select a subscription plan
|
||||||
</h5>
|
</h5>
|
||||||
|
<p className="subscribe-header-sub">
|
||||||
|
← Click left/right for more options →
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="plan-header-left">
|
<div className="plan-header-left">
|
||||||
<div className="select-toggle-box">
|
<div className="select-toggle-box">
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ const Radio = (props) => {
|
|||||||
const index = isAnnual === 1 ? Number("1") : Number("0");
|
const index = isAnnual === 1 ? Number("1") : Number("0");
|
||||||
|
|
||||||
const upgradeClass = isUpgrade ? "upgrade" : "not-upgrade";
|
const upgradeClass = isUpgrade ? "upgrade" : "not-upgrade";
|
||||||
|
console.log("activeRadioOption", activeRadioOption);
|
||||||
return (
|
return (
|
||||||
<div className="radio-container">
|
<div className="radio-container">
|
||||||
<div className="radio-option-container" key={name}>
|
<div className="radio-option-container" key={name}>
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
.select-plan-header {
|
.select-plan-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
height: 55px;
|
height: 70px;
|
||||||
width: 830px;
|
width: 830px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
@@ -96,6 +96,16 @@
|
|||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.plan-header-right > h5 {
|
||||||
|
margin-bottom: 4px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subscribe-header-sub {
|
||||||
|
margin-left: 14px;
|
||||||
|
font-size: 0.86rem;
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
|
|
||||||
.plan-header-right-lower {
|
.plan-header-right-lower {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
Reference in New Issue
Block a user