more
This commit is contained in:
@@ -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);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user