From 53530241da79f1b6d6959fc30f54fae9f69d75fa Mon Sep 17 00:00:00 2001 From: Brook4747 <109784182+Brook4747@users.noreply.github.com> Date: Sun, 18 Dec 2022 17:00:05 +1100 Subject: [PATCH] Update App.js --- frontEndSimulator/src/App.js | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/frontEndSimulator/src/App.js b/frontEndSimulator/src/App.js index 85b4efe..7eb7315 100644 --- a/frontEndSimulator/src/App.js +++ b/frontEndSimulator/src/App.js @@ -2,6 +2,16 @@ import { useState } from "react"; import axios from "axios"; import { Box, Button, TextField } from "@mui/material"; import "./styling/index.css"; +//Simple navigation bar + +
+ + + function App() { // State variables const [fileName, setFileName] = useState(""); @@ -28,7 +38,6 @@ function App() { setResponse(JSON.stringify(response.data)); }); } - function getDiff(endpoint) { const url = `http://localhost:4567/${endpoint}`; axios.get(url).then((response) => { @@ -185,36 +194,36 @@ function App() { sendGet(`file_exist/${uid}/${pid}/${fileName}`) }} > - File Exists in Project? + Create Project - -