more
This commit is contained in:
@@ -36,30 +36,7 @@ const SignupPage = () => {
|
||||
);
|
||||
const [showPaymentModal, setShowPaymentModal] = useState(false);
|
||||
const [showSelectPlan, setShowSelectPlan] = useState(true);
|
||||
|
||||
const signupRadioFields = [
|
||||
[
|
||||
{
|
||||
name: "Monthly - basic",
|
||||
label: "Monthly - basic",
|
||||
value: "monthlyBasic",
|
||||
},
|
||||
{ name: "Monthly - pro", label: "Monthly - pro", value: "monthlyPro" },
|
||||
],
|
||||
[
|
||||
{
|
||||
name: "Annual - unlimted",
|
||||
label: "Annual - unlimted",
|
||||
value: "annualUnlimited",
|
||||
},
|
||||
{
|
||||
name: "",
|
||||
label: "",
|
||||
value: "",
|
||||
},
|
||||
],
|
||||
];
|
||||
|
||||
const [radioOption, setRadioOption] = useState();
|
||||
const modalText = "Description of monthly and annual subscriptions";
|
||||
|
||||
// this could also go in App.js if needed in the future
|
||||
@@ -91,6 +68,10 @@ const SignupPage = () => {
|
||||
}
|
||||
};
|
||||
|
||||
const handleChangeRadioInput = (e, name) => {
|
||||
console.log("name", name.label);
|
||||
};
|
||||
|
||||
const validateData = () => {
|
||||
const newData = getValidatedFormData(data, signupFields);
|
||||
const hasErrors = isFormDataHasErrors(newData);
|
||||
@@ -153,18 +134,6 @@ const SignupPage = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const handleChangeRadioInput = (e, name) => {
|
||||
console.log("name", name.label);
|
||||
return;
|
||||
if (!name) {
|
||||
return;
|
||||
}
|
||||
const newData = handleFormDataChange(e, name, data, signupRadioFields);
|
||||
if (newData !== null) {
|
||||
setData(newData);
|
||||
}
|
||||
};
|
||||
|
||||
const handleProceedToPayment = (e) => {
|
||||
e.preventDefault();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user