This commit is contained in:
Kenneth Jannette
2024-03-14 22:56:52 -05:00
parent cb6a345b94
commit 2604a74160
4 changed files with 102 additions and 21 deletions

View File

@@ -35,6 +35,7 @@ const UploadModal = (props) => {
setIsLoading,
clientPosition,
fbUserId,
uploadType,
} = props;
const { caseId, caseNumber, jurisdiction, caption, captionTwo } = caseData;
const [docTitle, setDocTitle] = useState("");
@@ -50,7 +51,9 @@ const UploadModal = (props) => {
const [docError, setShowDocError] = useState("");
const fileTypes = ["PDF"];
const fileName = fileToParse ? fileToParse.name : undefined;
console.log("uploadType", uploadType);
const otherType =
uploadType === "complaint" ? "discovery request" : "complaint";
let docType;
const apiUrl =
process.env.NODE_ENV === "development"
@@ -250,19 +253,17 @@ const UploadModal = (props) => {
<ExclamationTriangle
style={{
color: "red",
marginBottom: "4px",
marginBottom: "6px",
marginRight: "8px",
}}
/>
NOTE: Selecting incorrect document type may result in errors.
<p className="upload-modal-header-text red indent">
Clicking upload begins document creation.
NOTE: YOU ARE UPLOADING A {uploadType.toUpperCase()}
<p className="upload-modal-header-text indent">
If you intended to upload a {otherType} - click "cancel", then
select {otherType}
</p>
</span>
</p>
<p className="upload-modal-header-text red right">
Document credit will be debited from account.
</p>
</div>
<Form>
<Row>