From 2ea87c586c2408f77334107e822f12ed548fd73f Mon Sep 17 00:00:00 2001
From: bmodee <bjomo323@student.liu.se>
Date: Sun, 9 May 2021 17:35:37 +0200
Subject: [PATCH] revert dashboard component to earlier version

---
 .../admin/dashboard/components/CurrentUser.tsx     | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/client/src/pages/admin/dashboard/components/CurrentUser.tsx b/client/src/pages/admin/dashboard/components/CurrentUser.tsx
index 61d6e5f0..826a9a6d 100644
--- a/client/src/pages/admin/dashboard/components/CurrentUser.tsx
+++ b/client/src/pages/admin/dashboard/components/CurrentUser.tsx
@@ -6,16 +6,6 @@ import { useAppSelector } from '../../../../hooks'
 
 const CurrentUser: React.FC = () => {
   const currentUser = useAppSelector((state: { user: { userInfo: any } }) => state.user.userInfo)
-  const roles = useAppSelector((state) => state.roles.roles)
-  const region = useAppSelector((state) => state.cities.cities)
-
-  const handleRole = (id: number) => {
-    return id
-  }
-
-  const handleRegion = (id: number) => {
-    return id
-  }
 
   return (
     <div>
@@ -31,10 +21,10 @@ const CurrentUser: React.FC = () => {
           </Typography>
         </div>
         <div>
-          <Typography variant="h6">Region: {handleRegion(currentUser.city_id)}</Typography>
+          <Typography variant="h6">Region:</Typography>
         </div>
         <div>
-          <Typography variant="h6">Roll: {handleRole(currentUser.role_id)}</Typography>
+          <Typography variant="h6">Roll: </Typography>
         </div>
       </Box>
     </div>
-- 
GitLab