diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 25898fab..ab08cf91 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -47,6 +47,7 @@ import SideNavbarDemo from "./components/pages/SideNavbarDemo"; import customTheme from "./theme"; import { AuthenticatedUser } from "./types/AuthTypes"; import VolunteerShiftsPage from "./components/pages/volunteer/shift/VolunteerShiftsPage"; +import AdminSchedulePostingPage from "./components/pages/admin/schedule/AdminSchedulePostingPage"; const App = (): React.ReactElement => { const currentUser: AuthenticatedUser = getLocalStorageObj( @@ -167,6 +168,11 @@ const App = (): React.ReactElement => { path={Routes.ADMIN_POSTING_DETAILS} component={AdminPostingDetails} /> + { + const { id } = useParams<{ id: string }>(); + + return ( + + + Hello! 👋 This is a placeholder page. + The id is: {id} + + + ); +}; + +export default AdminSchedulePostingPage; diff --git a/frontend/src/constants/Routes.ts b/frontend/src/constants/Routes.ts index 5a0600ee..86b2f9b6 100644 --- a/frontend/src/constants/Routes.ts +++ b/frontend/src/constants/Routes.ts @@ -36,3 +36,5 @@ export const ADMIN_POSTING_CREATE_REVIEW_PAGE = "/admin/posting/create/review"; export const VOLUNTEER_POSTING_DETAILS = "/volunteer/posting/:id"; export const ADMIN_POSTING_DETAILS = "/admin/posting/:id"; + +export const ADMIN_SCHEDULE_POSTING_PAGE = "/admin/schedule/posting/:id";