diff --git a/frontend/components/loginForm.tsx b/frontend/components/loginForm.tsx index 799e1e87..f99eded8 100644 --- a/frontend/components/loginForm.tsx +++ b/frontend/components/loginForm.tsx @@ -1,24 +1,23 @@ import Image from "next/image"; import filler_image from "@/public/filler_image.png"; import styles from "@/styles/Login.module.css"; -import React, {FormEvent, useState} from "react"; -import {useTranslation} from "react-i18next"; -import {useRouter} from "next/router"; +import React, { FormEvent, useState } from "react"; +import { useTranslation } from "react-i18next"; +import { useRouter } from "next/router"; import login from "@/lib/login"; import setSessionStorage from "@/lib/storage"; -import {getRoleDirection} from "@/lib/reroute"; -import {handleError} from "@/lib/error"; +import { getRoleDirection } from "@/lib/reroute"; +import { handleError } from "@/lib/error"; import Link from "next/link"; -import IconButton from '@mui/material/IconButton'; -import Visibility from '@mui/icons-material/Visibility'; -import VisibilityOff from '@mui/icons-material/VisibilityOff'; -import InputAdornment from '@mui/material/InputAdornment'; -import TextField from '@mui/material/TextField'; +import IconButton from "@mui/material/IconButton"; +import Visibility from "@mui/icons-material/Visibility"; +import VisibilityOff from "@mui/icons-material/VisibilityOff"; +import InputAdornment from "@mui/material/InputAdornment"; +import TextField from "@mui/material/TextField"; import PasswordInput from "@/components/password/passwordInput"; - function LoginForm() { - const {t} = useTranslation(); + const { t } = useTranslation(); const router = useRouter(); const [username, setUsername] = useState(""); const [password, setPassword] = useState(""); @@ -48,7 +47,7 @@ function LoginForm() { return (
- + Login.
{router.query.createdAccount && ( @@ -78,10 +77,15 @@ function LoginForm() { /> - +
+

Geheugen opgefrist? Ga naar login