diff --git a/src/App.tsx b/src/App.tsx index f0a86b423f208efb3b101ef2fc6e00b593940150..9c5a50ccdddc28b68611cd9977cb6061c4e3731f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,6 +6,7 @@ import { LandingPage } from 'components/LandingPage/LandingPage'; import { PrivateRoute } from 'components/api/PrivateRoute/PrivateRoute'; import { AuthRoutes, NonAuthRoutes } from 'components/api/routes'; import { NotFound } from 'components/NotFound/NotFound'; +import { ProfilePage } from 'components/ProfilePage/ProfilePage'; import { Roles } from 'components/api/userRoles'; import { Unauthorized } from 'components/Unauthorized/Unauthorized'; @@ -20,6 +21,11 @@ export const App: FC = () => ( Component={HomePage} requiredRoles={[Roles.admin, Roles.operator, Roles.senior]} /> + <PrivateRoute + path={AuthRoutes.profile} + Component={ProfilePage} + requiredRoles={[Roles.admin, Roles.operator, Roles.senior]} + /> <Route path={NonAuthRoutes.unauthorized} component={Unauthorized} /> <Route component={NotFound} /> </Switch>