Dashboard
diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx
index 1cd917c..2319571 100644
--- a/src/pages/Login.tsx
+++ b/src/pages/Login.tsx
@@ -1,6 +1,8 @@
import { createRef, useEffect, useMemo, useState } from "react"
import { Navigate } from "react-router-dom"
import { authorizeLogin, isLoggedIn, LoginState, useClearToken } from "../authorization"
+import { SVGRightArrow } from "../components/Icons"
+import { InputPassword, InputText } from "../components/Inputs"
export function Login() {
var [username, setUsername] = useState("")
@@ -25,30 +27,29 @@ export function Login() {
}
}, [username, password])
- useEffect(() => {
- if (loginState === LoginState.Invalid) {
- usernameRef.current?.setCustomValidity("Invalid username or password")
- passwordRef.current?.setCustomValidity("Invalid username or password")
- } else {
- usernameRef.current?.setCustomValidity("")
- passwordRef.current?.setCustomValidity("")
- }
- }, [loginState])
-
return (