diff --git a/frontend/src/App.js b/frontend/src/App.js
index 0f1ece6..717c362 100644
--- a/frontend/src/App.js
+++ b/frontend/src/App.js
@@ -6,6 +6,7 @@ import LogoutPage from "./pages/LogoutPage";
import RegisterPage from "./pages/RegisterPage";
import CoursePage from "./pages/CoursePage";
import ManagePage from "./pages/ManagePage";
+import ManageStudentsPage from "./pages/ManageStudentsPage";
import AuthenticatedRoute from "./components/AuthenticatedRoute";
function App() {
@@ -47,6 +48,16 @@ function App() {
+
+
+ {(params) => {
+ return (
+
+
+
+ );
+ }}
+
);
}
diff --git a/frontend/src/pages/ManageStudentsPage.jsx b/frontend/src/pages/ManageStudentsPage.jsx
new file mode 100644
index 0000000..b118721
--- /dev/null
+++ b/frontend/src/pages/ManageStudentsPage.jsx
@@ -0,0 +1,54 @@
+import { useEffect, useState } from "react";
+import { Container, Table } from "react-bootstrap";
+import MyNavbar from "../components/MyNavbar";
+import { makeRequest } from "../utils.ts";
+
+const ManageStutentsPage = ({cid}) => {
+ const [studentData, setStudentData] = useState([]);
+
+ useEffect(() => {
+ // makeRequest({
+ // url: `http://localhost:5000/course/${cid}/students`,
+ // method: "GET",
+ // })
+ // .then((req) => req.json())
+ // .then((data) => {
+ // setStudentData(data.courses);
+ // })
+ // .catch((err) => {
+ // console.error(err);
+ // });
+ }, []);
+
+ return (
+
+
+
+ Manage Students
+
+
+
+ | # |
+ Username |
+ Email |
+ Manage |
+
+
+
+ {studentData.map((student, k) => {
+ return (
+
+ | {student.id} |
+ {student.username} |
+ {student.email} |
+
+ );
+ })}
+
+
+
+
+ );
+};
+
+export default ManageStutentsPage;