more
This commit is contained in:
@@ -38,7 +38,7 @@ const SignupPage = () => {
|
||||
const [showSelectPlan, setShowSelectPlan] = useState(true);
|
||||
const [activeRadioOption, setActiveRadioOption] = useState("monthlyBasic");
|
||||
const modalText = "Description of monthly and annual subscriptions";
|
||||
|
||||
const [selectedPlan, setSelectedPlan] = useState({});
|
||||
// this could also go in App.js if needed in the future
|
||||
const stripe = new Stripe(
|
||||
"pk_test_51NNoasBi8p7FeGFrI5SfpM6HuNMoxwImx6NRKyKbgbt6OPxMxQDiZ9I1GqvDa9qUwB3D3jlJOng6MyjPppWofxzP00Exvr8dBy"
|
||||
@@ -69,6 +69,11 @@ const SignupPage = () => {
|
||||
};
|
||||
|
||||
const handleChangeRadioInput = (value) => {
|
||||
const tempPlan = signupRadioFields.filter((field) => {
|
||||
return field.value === value;
|
||||
});
|
||||
console.log("tempPlan", tempPlan);
|
||||
setSelectedPlan(tempPlan);
|
||||
const temp = value;
|
||||
setActiveRadioOption(temp);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user