From febcce896fb9b76964c9d9e9d7ec33f250bae511 Mon Sep 17 00:00:00 2001
From: Tore Brede <Tore.Brede@uib.no>
Date: Thu, 27 Jan 2022 12:40:34 +0100
Subject: [PATCH] GREG-192: Changing to inherit width for large login box

---
 frontend/src/components/loginBox/index.tsx | 8 ++++----
 frontend/src/routes/invite/index.tsx       | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/frontend/src/components/loginBox/index.tsx b/frontend/src/components/loginBox/index.tsx
index ee8bb458..2e60a9c4 100644
--- a/frontend/src/components/loginBox/index.tsx
+++ b/frontend/src/components/loginBox/index.tsx
@@ -18,7 +18,7 @@ interface LoginBoxProps {
   header: string
   info: string
   manual?: boolean
-  large?: boolean
+  inheritWidth?: boolean
   onClickLogin?: () => any
 }
 
@@ -26,14 +26,14 @@ const LoginBox = ({
   header,
   info,
   manual,
-  large,
+  inheritWidth,
   onClickLogin,
 }: LoginBoxProps) => {
   const { t } = useTranslation('login')
   return (
     <StyledBox
       sx={{
-        width: large ? '48rem' : '24rem',
+        width: inheritWidth ? 'inherit' : '24rem',
         height: '18rem',
         marginBottom: { xs: '2rem', md: '0rem' },
       }}
@@ -86,5 +86,5 @@ const LoginBox = ({
     </StyledBox>
   )
 }
-LoginBox.defaultProps = { manual: false, large: false, onClickLogin: {} }
+LoginBox.defaultProps = { manual: false, inheritWidth: false, onClickLogin: {} }
 export default LoginBox
diff --git a/frontend/src/routes/invite/index.tsx b/frontend/src/routes/invite/index.tsx
index cb26540f..2b3f17b4 100644
--- a/frontend/src/routes/invite/index.tsx
+++ b/frontend/src/routes/invite/index.tsx
@@ -38,7 +38,7 @@ function ChooseRegistrationMethod() {
           header={t('guest')}
           info={t('guestInfo')}
           manual
-          large
+          inheritWidth
           onClickLogin={setCookieLogin}
         />
       </Container>
-- 
GitLab