more
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user