Skip to content
Open
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
7 changes: 7 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { AuthenticatedUser } from "./types/AuthTypes";
import VolunteerViewEditUserProfilePage from "./features/user-profile/pages/VolunteerViewEditUserProfilePage";
import EditPetProfilePage from "./features/pet-profile/pages/EditPetProfilePage";
import EditTaskTemplatePage from "./features/task-management/pages/EditTaskTemplatePage";
import AddPetForm from "./features/pet-profile/pages/AddPetForm";

const App = (): React.ReactElement => {
const currentUser: AuthenticatedUser = getLocalStorageObj<AuthenticatedUser>(
Expand Down Expand Up @@ -102,6 +103,12 @@ const App = (): React.ReactElement => {
component={EditPetProfilePage}
allowedRoles={AuthConstants.ADMIN_AND_BEHAVIOURISTS}
/>
<PrivateRoute
exact
path={`${Routes.ADD_PET_FORM}`}
component={AddPetForm}
allowedRoles={AuthConstants.ADMIN_AND_BEHAVIOURISTS}
/>
<PrivateRoute
exact
path={Routes.ADMIN_PAGE}
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/constants/Routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export const PET_PROFILE_PAGE = "/pet-profile";

export const EDIT_PET_PROFILE_PAGE = "/edit-pet-profile";

export const ADD_PET_FORM = "/add-pet-form";

export const USER_MANAGEMENT_PAGE = "/admin/users";

export const ADMIN_EDIT_USER_PROFILE_PAGE = "/admin/edit-user-profile";
Expand Down
Loading