Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create page for Admin Posting #95

Merged
merged 1 commit into from
Jan 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import SampleContextDispatcherContext from "./contexts/SampleContextDispatcherCo
import EditTeamInfoPage from "./components/pages/EditTeamPage";
import HooksDemo from "./components/pages/HooksDemo";
import VolunteerPostingsPage from "./components/pages/volunteer/posting/VolunteerPostingsPage";
import CreatePostingShiftsPage from "./components/pages/admin/posting/CreatePostingShiftsPage";

import customTheme from "./theme";
import { AuthenticatedUser } from "./types/AuthTypes";
Expand Down Expand Up @@ -109,6 +110,11 @@ const App = (): React.ReactElement => {
path={Routes.VOLUNTEER_POSTINGS_PAGE}
component={VolunteerPostingsPage}
/>
<PrivateRoute
exact
path={Routes.ADMIN_POSTING_CREATE_SHIFTS_PAGE}
component={CreatePostingShiftsPage}
/>
<Route exact path="*" component={NotFound} />
</Switch>
</Router>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

const CreatePostingShiftsPage = (): React.ReactElement => {
return <div />;
};

export default CreatePostingShiftsPage;
2 changes: 2 additions & 0 deletions frontend/src/constants/Routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ export const UPDATE_ENTITY_PAGE = "/entity/update";
export const HOOKS_PAGE = "/hooks";

export const VOLUNTEER_POSTINGS_PAGE = "/volunteer/postings";

export const ADMIN_POSTING_CREATE_SHIFTS_PAGE = "/admin/posting/create/shifts";