#47 Made manage content page
This commit was merged in pull request #73.
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user