Skip to content

Commit

Permalink
Updated modal name
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelly011s committed Jul 1, 2023
1 parent 6270183 commit f70ebde
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dashboard/revamp_frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import { Container } from "react-bootstrap";
import NavBar from "./components/Navbar";
import io from "socket.io-client";
import Scan from "./components/Scan";
import ScanModal from "./components/Modal";
import UploadModal from "./components/UploadModal";

function App() {
//const flaskUrl = process.env.REACT_APP_FLASK_URL;
const flaskUrl = process.env.REACT_APP_FLASK_URL;
const [data, setData] = useState({ queued: [], running: [], completed: [] });
const [modal, setModal] = useState(false);


return (
<div>
Expand All @@ -21,7 +22,7 @@ function App() {
<p>Submitted</p>
</div>
</Container>
{data ? JSON.stringify(data) : "Data"}
{/* {data ? JSON.stringify(data) : "Data"} */}
<Container className="bg-white mx-auto p-0">
<h4>Queued Scans</h4>
{data.queued.length > 0 &&
Expand All @@ -35,7 +36,7 @@ function App() {
<Scan item={item} variant={"success"} />
))}
</Container>
<ScanModal modal={modal} setModal={setModal} />
<UploadModal modal={modal} setModal={setModal} />
</div>
);
}
Expand Down

0 comments on commit f70ebde

Please sign in to comment.