diff --git a/frontend/src/components/loginBox/index.tsx b/frontend/src/components/loginBox/index.tsx index ee8bb4582fa4d48810530d6faae4f7d74b8bc1de..2e60a9c4fe2939f3bc224069b1759ff3ccf40bc9 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 cb26540fcb5ea2b53fa7b09ee30032c8791760f6..2b3f17b4d75e5fb73199caaf4e7f46c3978da2d6 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>