#45 Made manage student page. Doesn't call backend yet

This commit is contained in:
2023-04-13 16:35:25 -04:00
parent 542e8c232a
commit 4faecbd29c
2 changed files with 65 additions and 0 deletions

View File

@@ -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() {
<ManagePage />
</AuthenticatedRoute>
</Route>
<Route path="/manage/:cid/students">
{(params) => {
return (
<AuthenticatedRoute>
<ManageStudentsPage cid={params.cid} />
</AuthenticatedRoute>
);
}}
</Route>
</div>
);
}