This commit is contained in:
Kenneth Jannette
2024-01-25 13:37:51 -06:00
parent 5964317880
commit 48f9ea9cae

View File

@@ -36,30 +36,7 @@ const SignupPage = () => {
); );
const [showPaymentModal, setShowPaymentModal] = useState(false); const [showPaymentModal, setShowPaymentModal] = useState(false);
const [showSelectPlan, setShowSelectPlan] = useState(true); const [showSelectPlan, setShowSelectPlan] = useState(true);
const [radioOption, setRadioOption] = useState();
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 modalText = "Description of monthly and annual subscriptions"; const modalText = "Description of monthly and annual subscriptions";
// this could also go in App.js if needed in the future // 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 validateData = () => {
const newData = getValidatedFormData(data, signupFields); const newData = getValidatedFormData(data, signupFields);
const hasErrors = isFormDataHasErrors(newData); 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) => { const handleProceedToPayment = (e) => {
e.preventDefault(); e.preventDefault();