File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import { AuthenticatedUser } from "./types/AuthTypes";
3131import VolunteerViewEditUserProfilePage from "./features/user-profile/pages/VolunteerViewEditUserProfilePage" ;
3232import EditPetProfilePage from "./features/pet-profile/pages/EditPetProfilePage" ;
3333import EditTaskTemplatePage from "./features/task-management/pages/EditTaskTemplatePage" ;
34+ import AddPetForm from "./features/pet-profile/pages/AddPetForm" ;
3435
3536const App = ( ) : React . ReactElement => {
3637 const currentUser : AuthenticatedUser = getLocalStorageObj < AuthenticatedUser > (
@@ -102,6 +103,12 @@ const App = (): React.ReactElement => {
102103 component = { EditPetProfilePage }
103104 allowedRoles = { AuthConstants . ADMIN_AND_BEHAVIOURISTS }
104105 />
106+ < PrivateRoute
107+ exact
108+ path = { `${ Routes . ADD_PET_FORM } ` }
109+ component = { AddPetForm }
110+ allowedRoles = { AuthConstants . ADMIN_AND_BEHAVIOURISTS }
111+ />
105112 < PrivateRoute
106113 exact
107114 path = { Routes . ADMIN_PAGE }
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ export const PET_PROFILE_PAGE = "/pet-profile";
1414
1515export const EDIT_PET_PROFILE_PAGE = "/edit-pet-profile" ;
1616
17+ export const ADD_PET_FORM = "/add-pet-form" ;
18+
1719export const USER_MANAGEMENT_PAGE = "/admin/users" ;
1820
1921export const ADMIN_EDIT_USER_PROFILE_PAGE = "/admin/edit-user-profile" ;
You can’t perform that action at this time.
0 commit comments