This commit is contained in:
Kenneth Jannette
2024-01-31 20:31:03 -06:00
parent 56ee3c2d65
commit b7625d6c95
9 changed files with 11 additions and 17 deletions

View File

@@ -70,7 +70,6 @@ const CaseTypePage = () => {
]; ];
const handleSetRadioValue = (e) => { const handleSetRadioValue = (e) => {
console.log("e", e);
setRadioValue(e.value); setRadioValue(e.value);
}; };
@@ -80,12 +79,12 @@ const CaseTypePage = () => {
}; };
const validateInput = () => { const validateInput = () => {
console.log(radioValue);
const leadAttorneyValid = leadAttorney.length > 2; const leadAttorneyValid = leadAttorney.length > 2;
const contactEmailValid = validateEmail(contactEmail); const contactEmailValid = validateEmail(contactEmail);
const caseTypeValid = selectedCaseTags.length > 0; const caseTypeValid = selectedCaseTags.length > 0;
const clientPositionValid = const clientPositionValid =
radioValue === "Defendant" || radioValue === "Plaintiff"; radioValue === "Defendant" || radioValue === "Plaintiff";
const allValid = const allValid =
leadAttorneyValid && leadAttorneyValid &&
contactEmailValid && contactEmailValid &&
@@ -124,13 +123,13 @@ const CaseTypePage = () => {
} }
}); });
}); });
console.log("~~~~~~~~~~~~~~~~~~~~recordTags", recordTags);
const dataValues = { const dataValues = {
leadAttorney: leadAttorney, leadAttorney: leadAttorney,
contactEmail: contactEmail, contactEmail: contactEmail,
contactName: contactName, contactName: contactName,
clientPosition: radioValue, clientPosition: radioValue,
caseTypeTags: recordTags, caseTags: recordTags,
}; };
setIsBusy(true); setIsBusy(true);
try { try {

View File

@@ -171,7 +171,7 @@ const DocumentListPage = ({ perPage }) => {
if (!group) { if (!group) {
return null; return null;
} }
console.log("allDocs", allDocs);
const DesktopContent = () => { const DesktopContent = () => {
return ( return (
<> <>

View File

@@ -18,8 +18,6 @@ const ConfirmModal = ({
setIssueText, setIssueText,
reportDoc, reportDoc,
}) => { }) => {
console.log("isReport", isReport);
return ( return (
<Modal show="true" onHide={onCancel} size="lg"> <Modal show="true" onHide={onCancel} size="lg">
<Modal.Header closeButton> <Modal.Header closeButton>

View File

@@ -126,7 +126,7 @@ const UploadModal = (props) => {
try { try {
const response = await processFile(); const response = await processFile();
console.log("response in upload modal", response);
if (response.res?.status !== 200) { if (response.res?.status !== 200) {
saveToDb(response.uuidName); saveToDb(response.uuidName);
return; return;

View File

@@ -3,9 +3,8 @@ import { AuthContext } from "../Context/AuthProvider";
import { Navigate } from "react-router-dom"; import { Navigate } from "react-router-dom";
const PrivateRoute = ({ children }) => { const PrivateRoute = ({ children }) => {
console.log("AuthContext", AuthContext);
const { currentUserEmail } = useContext(AuthContext); const { currentUserEmail } = useContext(AuthContext);
console.log("currentUserEmail", currentUserEmail);
return currentUserEmail === null ? <Navigate to="/" /> : children; return currentUserEmail === null ? <Navigate to="/" /> : children;
}; };

View File

@@ -287,7 +287,6 @@ const SignupPage = () => {
const data = await response.json(); const data = await response.json();
console.log("data in stripe auth call -------------++++++++++++++", data);
//subscriptionId = response.subscriptionId; //subscriptionId = response.subscriptionId;
//customerId = response.customerId; //customerId = response.customerId;
@@ -303,7 +302,6 @@ const SignupPage = () => {
const handleSignup = async (e) => { const handleSignup = async (e) => {
e.preventDefault(); e.preventDefault();
console.log("handleSignup");
const paymentDataValues = validatePaymentData(); const paymentDataValues = validatePaymentData();
if (paymentDataValues === null) { if (paymentDataValues === null) {
@@ -323,7 +321,7 @@ const SignupPage = () => {
paymentDataValues, paymentDataValues,
dataValues dataValues
); );
console.log("----------------------------->>>>>>>>>>>>>>>>>data", data);
const customerId = data.data.customerId; const customerId = data.data.customerId;
const subscriptionId = data.data.subscriptionId; const subscriptionId = data.data.subscriptionId;
@@ -350,7 +348,7 @@ const SignupPage = () => {
} }
} catch (error) { } catch (error) {
setIsBusy(false); setIsBusy(false);
console.log("-------->error", error);
setNotice( setNotice(
error.message || "Sorry, something went wrong. Please try again." error.message || "Sorry, something went wrong. Please try again."
); );

View File

@@ -284,7 +284,7 @@ export const DocCard = (props) => {
const pendingText = const pendingText =
"Parsing in process, please be patient. This should resolve within 10 minutes."; "Parsing in process, please be patient. This should resolve within 10 minutes.";
const report = (documentId, docType) => { const report = (documentId, docType) => {
console.log("report documentId, docType", documentId, docType); //console.log("report documentId, docType", documentId, docType);
}; };
return ( return (

View File

@@ -14,7 +14,7 @@ const Radio = (props) => {
details, details,
isAnnual, isAnnual,
} = props; } = props;
console.log("isAnnual in radio", isAnnual);
const classCheckbox = "checkbox"; const classCheckbox = "checkbox";
const classOption = "option"; const classOption = "option";
const index = isAnnual === 1 ? Number("1") : Number("0"); const index = isAnnual === 1 ? Number("1") : Number("0");

View File

@@ -15,7 +15,7 @@ const TextInput = (props) => {
type, type,
disabled, disabled,
} = props; } = props;
console.log("inputClassName", inputClassName);
return ( return (
<div <div
className={ className={