#46 Manage assignments page shows table of assignments for a specific course.
This commit was merged in pull request #68.
This commit is contained in:
@@ -9,6 +9,7 @@ import AssignmentPage from "./pages/AssignmentPage";
|
||||
import ManagePage from "./pages/ManagePage";
|
||||
import ManageStudentsPage from "./pages/ManageStudentsPage";
|
||||
import AuthenticatedRoute from "./components/AuthenticatedRoute";
|
||||
import ManageAssignmentsPage from "./pages/ManageAssignmentsPage";
|
||||
|
||||
const AuthRoute = ({ isAuthenticated = true, path, children }) => {
|
||||
return (
|
||||
@@ -70,6 +71,17 @@ function App() {
|
||||
);
|
||||
}}
|
||||
</Route>
|
||||
|
||||
<Route path="/manage/:id/assignments">
|
||||
{(params) => {
|
||||
return (
|
||||
<AuthenticatedRoute>
|
||||
<ManageAssignmentsPage cid={params.id} />
|
||||
</AuthenticatedRoute>
|
||||
);
|
||||
}}
|
||||
</Route>
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user