From 36df94acb9ea6e34e999cd20d56741136548ad3d Mon Sep 17 00:00:00 2001 From: Chanuka Lakshan Chandra Yapa <118423471+Chanuka-ChandraYapa@users.noreply.github.com> Date: Tue, 12 Sep 2023 21:12:57 +0530 Subject: [PATCH] minor update --- src/layouts/upload/inputPDF.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/layouts/upload/inputPDF.js b/src/layouts/upload/inputPDF.js index ebbd701..cbb481d 100644 --- a/src/layouts/upload/inputPDF.js +++ b/src/layouts/upload/inputPDF.js @@ -1,6 +1,6 @@ import React, { useState } from "react"; import { useNavigate } from "react-router-dom"; -import { Container, Typography } from "@mui/material"; +import { Container, Switch, Typography } from "@mui/material"; import Card from "@mui/material/Card"; import MDButton from "components/MDButton"; import MDBox from "components/MDBox"; @@ -11,6 +11,7 @@ import { uploadPdfs } from "api/sendPdf"; // Replace with your API endpoint for const PDFUploader = () => { const [selectedFiles, setSelectedFiles] = useState([]); const [backendResponse, setBackendResponse] = useState([]); + const [imageScan, setImageScan] = useState(false); const navigate = useNavigate(); const handleFileChange = (event) => { @@ -72,6 +73,16 @@ const PDFUploader = () => { Upload PDFs + + + + Does PDF contain Scanned Images? + + + + setImageScan(!imageScan)} /> + + Submit