This commit is contained in:
Kenneth Jannette
2024-01-25 16:20:12 -06:00
parent 229ea9452b
commit 8914a115e8
2 changed files with 7 additions and 5 deletions

View File

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

View File

@@ -57,10 +57,7 @@ const Radio = (props) => {
</div> </div>
</div> </div>
<div className="radio-circle-lower"> <div className="radio-circle-lower">
<div className="radio-description-box"> <div className="radio-description-box">{`${description}`} </div>
{" "}
{`${description}`}{" "}
</div>
</div> </div>
</div> </div>
</> </>