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')}
-
-
-
+
{t('loginPage.createAccountInstead')}
diff --git a/src/pages/RegisterPage.tsx b/src/pages/RegisterPage.tsx
index 8d287121..e7da69d4 100644
--- a/src/pages/RegisterPage.tsx
+++ b/src/pages/RegisterPage.tsx
@@ -28,7 +28,7 @@ const Content = styled(FlexColumn)`
overflow: auto;
`;
-const Container = styled("div")`
+const Container = styled(FlexColumn)`
width: 300px;
margin: auto;
padding: 10px;
@@ -66,7 +66,8 @@ export default function RegisterPage() {
}
})
- const registerClicked = async () => {
+ const registerClicked = async (event?: SubmitEvent) => {
+ event?.preventDefault();
const redirectTo = location.query.redirect || "/app"
if (requestSent()) return;
setRequestSent(true);
@@ -93,6 +94,7 @@ export default function RegisterPage() {
+
{t('registerPage.loginInstead')}