feat: add async suffix eslint rule (#485)

This commit is contained in:
Manuel
2024-05-18 12:25:33 +02:00
committed by GitHub
parent 5723295856
commit dcaff1d91c
60 changed files with 296 additions and 225 deletions

View File

@@ -35,7 +35,7 @@ export const LoginForm = () => {
},
});
const handleSubmit = async (values: FormType) => {
const handleSubmitAsync = async (values: FormType) => {
setIsLoading(true);
setError(undefined);
await signIn("credentials", {
@@ -66,7 +66,9 @@ export const LoginForm = () => {
return (
<Stack gap="xl">
<form onSubmit={form.onSubmit((values) => void handleSubmit(values))}>
<form
onSubmit={form.onSubmit((values) => void handleSubmitAsync(values))}
>
<Stack gap="lg">
<TextInput
label={t("field.username.label")}