This commit is contained in:
Kenneth Jannette
2024-02-24 02:48:37 -06:00
parent b5296d1c37
commit 2a753814c1
2 changed files with 9 additions and 3 deletions

View File

@@ -88,8 +88,10 @@ const UploadModal = (props) => {
}
async function uploadFile(file) {
console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~radioValue", radioValue);
try {
if (radioValue === "discovery-request") {
console.log("hit radio if");
const response = await fetch(`${apiUrl}/v1/gen-disc-request`, {
method: "POST",
body: file,
@@ -204,7 +206,7 @@ const UploadModal = (props) => {
document type. (the other fields are optional.)
</p>
<p className="upload-modal-header-text red">
<span className="upload-header-bold">
<span className="upload-header-text">
<ExclamationTriangle
style={{
color: "red",
@@ -216,8 +218,8 @@ const UploadModal = (props) => {
discovery requests.
</span>
</p>
<p className="upload-modal-header-text red">
Incorrect selection will result in errors but 1 document credit will
<p className="upload-modal-header-text red right">
Incorrect selection will result in errors. Document credit will
still be debited from your account
</p>
<p className="upload-modal-header-text">

View File

@@ -25,6 +25,10 @@
&.red {
color: red;
}
&.right {
margin-top: -7px;
margin-left: 23px;
}
}
.upload-header-bold {