d
This commit is contained in:
@@ -37,7 +37,7 @@ const SignupPage = () => {
|
||||
getFormDataDefaults(paymentfields)
|
||||
);
|
||||
const [showPaymentModal, setShowPaymentModal] = useState(false);
|
||||
const [showSelectPlan, setShowSelectPlan] = useState(true);
|
||||
const [showSelectPlan, setShowSelectPlan] = useState(false);
|
||||
const [activeRadioOption, setActiveRadioOption] = useState("monthlyBasic");
|
||||
const [selectedPlan, setSelectedPlan] = useState({});
|
||||
const [isAnnualBilling, setIsAnnualBilling] = useState(false);
|
||||
@@ -74,16 +74,12 @@ const SignupPage = () => {
|
||||
const tempPlan = signupRadioFields.filter((field) => {
|
||||
return field.value === value;
|
||||
});
|
||||
console.log("tempPlan", tempPlan);
|
||||
|
||||
setSelectedPlan(tempPlan);
|
||||
const temp = value;
|
||||
setActiveRadioOption(temp);
|
||||
};
|
||||
|
||||
signupRadioFields.map((option) => {
|
||||
console.log(option.value);
|
||||
});
|
||||
|
||||
const validateData = () => {
|
||||
const newData = getValidatedFormData(data, signupFields);
|
||||
const hasErrors = isFormDataHasErrors(newData);
|
||||
@@ -157,16 +153,18 @@ const SignupPage = () => {
|
||||
if (isBusy) {
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
const dataValues = validateData();
|
||||
if (dataValues === null) {
|
||||
return;
|
||||
}
|
||||
*/
|
||||
setShowSelectPlan(true);
|
||||
};
|
||||
|
||||
const handleToggle = () => {
|
||||
setIsAnnualBilling(!isAnnualBilling);
|
||||
console.log("isAnnualBilling", isAnnualBilling);
|
||||
};
|
||||
|
||||
async function handleStripeAuthorization(
|
||||
|
||||
Reference in New Issue
Block a user