diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js index 82018d4..f808b42 100644 --- a/src/Components/SignupPage/SignupPage.js +++ b/src/Components/SignupPage/SignupPage.js @@ -49,7 +49,7 @@ const SignupPage = () => { ? process.env.REACT_APP_API_DEV : 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 newData = handleFormDataChange(e, name, data, signupFields); @@ -153,13 +153,29 @@ const SignupPage = () => { if (isBusy) { return; } + /* const dataValues = validateData(); if (dataValues === null) { 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 = () => { @@ -196,7 +212,7 @@ const SignupPage = () => { "Content-Type": "application/json", }, body: JSON.stringify({ - type: "monthly", // TODO: replace this with the user-chosen value later when we have the UI for it + type: "monthly", customerData: { email: customerDataValues.email, name: @@ -211,8 +227,6 @@ const SignupPage = () => { subscriptionId = response.subscriptionId; customerId = response.customerId; - console.log("response", response); - return { subscriptionId, customerId, @@ -407,6 +421,16 @@ const SignupPage = () => { ))} +