From 224ccbadf7eda0447753f58df8872a2067cae8b8 Mon Sep 17 00:00:00 2001
From: Alberto Defendi <1369-ahl-berto@users.noreply.gitlab.inf.unibz.it>
Date: Thu, 22 Apr 2021 14:20:33 +0200
Subject: [PATCH] Include ProfilePage

---
 src/App.tsx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/App.tsx b/src/App.tsx
index f0a86b4..9c5a50c 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>
-- 
GitLab