#47 Made manage content page

This commit was merged in pull request #73.
This commit is contained in:
2023-04-14 17:06:25 -04:00
parent 8626fd9a44
commit dccc1949e0
2 changed files with 160 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ import ManagePage from "./pages/ManagePage";
import ManageStudentsPage from "./pages/ManageStudentsPage";
import AuthenticatedRoute from "./components/AuthenticatedRoute";
import ManageAssignmentsPage from "./pages/ManageAssignmentsPage";
import ManageContentPage from "./pages/ManageContentPage";
const AuthRoute = ({ isAuthenticated = true, path, children }) => {
return (
@@ -72,6 +73,16 @@ function App() {
}}
</Route>
<Route path="/manage/:id/content">
{(params) => {
return (
<AuthenticatedRoute>
<ManageContentPage cid={params.id} />
</AuthenticatedRoute>
);
}}
</Route>
<Route path="/manage/:id/assignments">
{(params) => {
return (