@@ -17,9 +17,11 @@ const PaymentModal = ({
|
|||||||
handleSignUp,
|
handleSignUp,
|
||||||
setShowPaymentModal,
|
setShowPaymentModal,
|
||||||
handleSignup,
|
handleSignup,
|
||||||
|
selectedPlan,
|
||||||
|
isAnnual,
|
||||||
}) => {
|
}) => {
|
||||||
const fieldsChunkSize = 2;
|
const fieldsChunkSize = 2;
|
||||||
|
console.log("***", selectedPlan, isAnnual);
|
||||||
return (
|
return (
|
||||||
<Modal show="true" size="lg">
|
<Modal show="true" size="lg">
|
||||||
<Modal.Header closeButton>
|
<Modal.Header closeButton>
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const SignupPage = () => {
|
|||||||
);
|
);
|
||||||
const [showPaymentModal, setShowPaymentModal] = useState(false);
|
const [showPaymentModal, setShowPaymentModal] = useState(false);
|
||||||
const [showSelectPlan, setShowSelectPlan] = useState(false);
|
const [showSelectPlan, setShowSelectPlan] = useState(false);
|
||||||
const [activeRadioOption, setActiveRadioOption] = useState("Partner");
|
const [activeRadioOption, setActiveRadioOption] = useState("partner");
|
||||||
const [selectedPlan, setSelectedPlan] = useState({});
|
const [selectedPlan, setSelectedPlan] = useState({});
|
||||||
const [isAnnual, setIsAnnual] = useState(false);
|
const [isAnnual, setIsAnnual] = useState(false);
|
||||||
// Could also go in App.js if needed in the future
|
// Could also go in App.js if needed in the future
|
||||||
@@ -49,7 +49,7 @@ const SignupPage = () => {
|
|||||||
process.env.NODE_ENV === "development"
|
process.env.NODE_ENV === "development"
|
||||||
? process.env.REACT_APP_API_DEV
|
? process.env.REACT_APP_API_DEV
|
||||||
: process.env.REACT_APP_API_PROD;
|
: process.env.REACT_APP_API_PROD;
|
||||||
|
const [selectedPlanToProcess, setSelectedPlanToProcess] = useState();
|
||||||
const modalText = "MAYBE PUT TOTAL HERE";
|
const modalText = "MAYBE PUT TOTAL HERE";
|
||||||
|
|
||||||
const handleChangeInput = (e, name) => {
|
const handleChangeInput = (e, name) => {
|
||||||
@@ -72,13 +72,14 @@ const SignupPage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleChangeRadioInput = (value) => {
|
const handleChangeRadioInput = (value) => {
|
||||||
const tempPlan = signupRadioFields.filter((field) => {
|
const tempPlan = signupRadioFields.filter((plan) => {
|
||||||
return field.value === value;
|
if (plan.value === value) {
|
||||||
|
return plan;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
setSelectedPlan(tempPlan);
|
setSelectedPlan(tempPlan);
|
||||||
const temp = value;
|
setActiveRadioOption(tempPlan[0].value);
|
||||||
setActiveRadioOption(temp);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const validateData = () => {
|
const validateData = () => {
|
||||||
@@ -450,6 +451,8 @@ const SignupPage = () => {
|
|||||||
modalText={modalText}
|
modalText={modalText}
|
||||||
notice={notice}
|
notice={notice}
|
||||||
setNotice={setNotice}
|
setNotice={setNotice}
|
||||||
|
selectedPlan={selectedPlan}
|
||||||
|
isAnnual={isAnnual}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<></>
|
<></>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export const signupRadioFields = [
|
|||||||
description: [
|
description: [
|
||||||
"Unlimited documents.",
|
"Unlimited documents.",
|
||||||
"Triage-level support",
|
"Triage-level support",
|
||||||
"Up to 10 additional accounts at $39/each",
|
"Up to 8 additional accounts at $39/each",
|
||||||
],
|
],
|
||||||
details: "",
|
details: "",
|
||||||
pricing: [
|
pricing: [
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
|
padding-right: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.signup-proceed {
|
.signup-proceed {
|
||||||
@@ -136,7 +137,7 @@
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 400px;
|
height: 340px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select-plan-summary-box {
|
.select-plan-summary-box {
|
||||||
|
|||||||
Reference in New Issue
Block a user