Fix various eslint issues

This commit is contained in:
2025-05-23 23:03:05 +02:00
parent ad2334c414
commit 78de42d195
24 changed files with 65 additions and 61 deletions

View File

@@ -17,14 +17,16 @@ const LoginPage: React.FC = () => {
const [loading, setLoading] = useState<boolean>(false);
const { login } = useAuth();
const handleSubmit = async (e: FormEvent<HTMLElement>): Promise<void> => {
const handleSubmit = (e: FormEvent<HTMLElement>): void => {
e.preventDefault();
setLoading(true);
try {
await login(email, password);
} finally {
setLoading(false);
}
login(email, password)
.catch((error) => {
console.error('Login failed:', error);
})
.finally(() => {
setLoading(false);
});
};
return (