Skip to content
Snippets Groups Projects
Commit febcce89 authored by Tore.Brede's avatar Tore.Brede
Browse files

GREG-192: Changing to inherit width for large login box

parent eb902a35
No related branches found
No related tags found
1 merge request!260GREG-192: Changing to inherit width for large login box
Pipeline #112319 passed
......@@ -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
......@@ -38,7 +38,7 @@ function ChooseRegistrationMethod() {
header={t('guest')}
info={t('guestInfo')}
manual
large
inheritWidth
onClickLogin={setCookieLogin}
/>
</Container>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment