Skip to content

Commit 0bff4dd

Browse files
committed
Add AddPetForm to routes
1 parent cf574e5 commit 0bff4dd

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

frontend/src/App.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { AuthenticatedUser } from "./types/AuthTypes";
3131
import VolunteerViewEditUserProfilePage from "./features/user-profile/pages/VolunteerViewEditUserProfilePage";
3232
import EditPetProfilePage from "./features/pet-profile/pages/EditPetProfilePage";
3333
import EditTaskTemplatePage from "./features/task-management/pages/EditTaskTemplatePage";
34+
import AddPetForm from "./features/pet-profile/pages/AddPetForm";
3435

3536
const 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}

frontend/src/constants/Routes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export const PET_PROFILE_PAGE = "/pet-profile";
1414

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

17+
export const ADD_PET_FORM = "/add-pet-form";
18+
1719
export const USER_MANAGEMENT_PAGE = "/admin/users";
1820

1921
export const ADMIN_EDIT_USER_PROFILE_PAGE = "/admin/edit-user-profile";

0 commit comments

Comments
 (0)