Skip to content

Commit

Permalink
Refactor App component to add user management and admin pages
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinScitech committed Oct 9, 2024
1 parent eb9c600 commit 7930572
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ import EditTeamInfoPage from "./components/pages/EditTeamPage";
import HooksDemo from "./components/pages/HooksDemo";
import NotificationsPage from "./components/pages/NotificationsPage";
import ProfilePage from "./components/pages/ProfilePage";
import UserManagementPage from "./components/pages/UserManagementPage";
import AdminPage from "./components/pages/AdminPage";

import { AuthenticatedUser } from "./types/AuthTypes";
import UserManagementPage from "./components/pages/UserManagementPage";

const App = (): React.ReactElement => {
const currentUser: AuthenticatedUser = getLocalStorageObj<AuthenticatedUser>(
Expand Down Expand Up @@ -135,7 +136,7 @@ const App = (): React.ReactElement => {
<PrivateRoute
exact
path={Routes.ADMIN_PAGE}
component={Default}
component={AdminPage}
allowedRoles={AuthConstants.ADMIN_AND_BEHAVIOURISTS}
/>
<PrivateRoute
Expand Down

0 comments on commit 7930572

Please sign in to comment.