diff --git a/apps/site/src/app/admin/dashboard/AdminDashboard.tsx b/apps/site/src/app/admin/dashboard/AdminDashboard.tsx index 61513a31..f673ce7c 100644 --- a/apps/site/src/app/admin/dashboard/AdminDashboard.tsx +++ b/apps/site/src/app/admin/dashboard/AdminDashboard.tsx @@ -1,17 +1,24 @@ "use client"; +import { useContext } from "react"; + import Container from "@cloudscape-design/components/container"; import ContentLayout from "@cloudscape-design/components/content-layout"; import SpaceBetween from "@cloudscape-design/components/space-between"; +import { isApplicationManager } from "@/lib/admin/authorization"; +import UserContext from "@/lib/admin/UserContext"; + import ApplicantSummary from "./components/ApplicantSummary"; function AdminDashboard() { + const { role } = useContext(UserContext); + return ( Admin Dashboard - + {isApplicationManager(role) && } );