diff --git a/src/pages/LoginPage.tsx b/src/pages/LoginPage.tsx index 649c44b3..bddf287f 100644 --- a/src/pages/LoginPage.tsx +++ b/src/pages/LoginPage.tsx @@ -25,7 +25,7 @@ const Content = styled(FlexColumn)` overflow: auto; `; -const Container = styled("div")` +const Container = styled(FlexColumn)` width: 300px; margin: auto; padding: 10px; @@ -59,7 +59,8 @@ export default function LoginPage() { } }) - const loginClicked = async () => { + const loginClicked = async (event?: SubmitEvent) => { + event?.preventDefault(); const redirectTo = location.query.redirect || "/app" if (requestSent()) return; setRequestSent(true); @@ -78,10 +79,12 @@ export default function LoginPage() { - {t('loginPage.title')} - - -