@@ -49,7 +49,7 @@ const SignupPage = () => {
|
|||||||
? 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 modalText = "Description of monthly and annual subscriptions";
|
const modalText = "MAYBE PUT TOTAL HERE";
|
||||||
|
|
||||||
const handleChangeInput = (e, name) => {
|
const handleChangeInput = (e, name) => {
|
||||||
const newData = handleFormDataChange(e, name, data, signupFields);
|
const newData = handleFormDataChange(e, name, data, signupFields);
|
||||||
@@ -153,13 +153,29 @@ const SignupPage = () => {
|
|||||||
if (isBusy) {
|
if (isBusy) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
const dataValues = validateData();
|
const dataValues = validateData();
|
||||||
if (dataValues === null) {
|
if (dataValues === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
setShowSelectPlan(true);
|
const dataValues = {
|
||||||
|
barNumber: "232323",
|
||||||
|
city: "broolyn",
|
||||||
|
confirmPassword: "123344556",
|
||||||
|
email: "j@s.com",
|
||||||
|
firm: "asdf",
|
||||||
|
firstName: "ghghg",
|
||||||
|
lastName: "hhhhh",
|
||||||
|
password: "123344556",
|
||||||
|
practiceArea: "dfdfdf",
|
||||||
|
state: "New York",
|
||||||
|
streetAddress: "123 Main",
|
||||||
|
telephone: "(313) 555-5555",
|
||||||
|
zipCode: "12345",
|
||||||
|
};
|
||||||
|
setShowSelectPlan(!showSelectPlan);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleToggle = () => {
|
const handleToggle = () => {
|
||||||
@@ -196,7 +212,7 @@ const SignupPage = () => {
|
|||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
type: "monthly", // TODO: replace this with the user-chosen value later when we have the UI for it
|
type: "monthly",
|
||||||
customerData: {
|
customerData: {
|
||||||
email: customerDataValues.email,
|
email: customerDataValues.email,
|
||||||
name:
|
name:
|
||||||
@@ -211,8 +227,6 @@ const SignupPage = () => {
|
|||||||
subscriptionId = response.subscriptionId;
|
subscriptionId = response.subscriptionId;
|
||||||
customerId = response.customerId;
|
customerId = response.customerId;
|
||||||
|
|
||||||
console.log("response", response);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
subscriptionId,
|
subscriptionId,
|
||||||
customerId,
|
customerId,
|
||||||
@@ -407,6 +421,16 @@ const SignupPage = () => {
|
|||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
<div className="signup-button-box">
|
||||||
|
<Button
|
||||||
|
className="primary-button signup-proceed"
|
||||||
|
type="button"
|
||||||
|
size="lg"
|
||||||
|
onClick={handleProceedToPayment}
|
||||||
|
disabled={isBusy}
|
||||||
|
labelText="Proceed to Payment"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ const Radio = (props) => {
|
|||||||
} = props;
|
} = props;
|
||||||
const classCheckbox = "checkbox";
|
const classCheckbox = "checkbox";
|
||||||
const classOption = "option";
|
const classOption = "option";
|
||||||
const index = isAnnualBilling ? Number("1") : Number("0");
|
const index = isAnnualBilling ? Number("0") : Number("1");
|
||||||
|
//
|
||||||
return (
|
return (
|
||||||
<div className="radio-container">
|
<div className="radio-container">
|
||||||
<div className="radio-option-container" key={name}>
|
<div className="radio-option-container" key={name}>
|
||||||
|
|||||||
@@ -136,7 +136,7 @@
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 420px;
|
height: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select-plan-summary-box {
|
.select-plan-summary-box {
|
||||||
|
|||||||
Reference in New Issue
Block a user