From 4d4a86ea6b3aa2194c638d7224c1f7e6dd875d24 Mon Sep 17 00:00:00 2001
From: Marte Fossum <myf@usit.uio.no>
Date: Thu, 7 Apr 2022 13:47:23 +0200
Subject: [PATCH] Flyttet 'legg til rolle'-knapp utenfor table

Issue: GREG-240
---
 .../routes/sponsor/guest/guestInfo/index.tsx  | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/frontend/src/routes/sponsor/guest/guestInfo/index.tsx b/frontend/src/routes/sponsor/guest/guestInfo/index.tsx
index c691d114..523ad9e6 100644
--- a/frontend/src/routes/sponsor/guest/guestInfo/index.tsx
+++ b/frontend/src/routes/sponsor/guest/guestInfo/index.tsx
@@ -368,19 +368,18 @@ export default function GuestInfo({
               <RoleLine key={role.id} pid={pid} role={role} />
             ))}
             <TableRow>
-              <TableCell align="left">
-                <Button
-                  variant="contained"
-                  color="secondary"
-                  component={Link}
-                  to={`/sponsor/guest/${pid}/newrole`}
-                >
-                  {t('sponsor.addRole')}
-                </Button>
-              </TableCell>
+              <TableCell align="left"></TableCell>
             </TableRow>
           </TableBody>
         </Table>
+        <Button
+          variant="contained"
+          color="secondary"
+          component={Link}
+          to={`/sponsor/guest/${pid}/newrole`}
+        >
+          {t('sponsor.addRole')}
+        </Button>
       </TableContainer>
     </Page>
   )
-- 
GitLab