This commit is contained in:
2025-03-18 11:48:33 -03:00
parent 12748e7e9c
commit 2b3811d94f
4 changed files with 36 additions and 9 deletions

View File

@@ -27,8 +27,14 @@ export function Form() {
};
return (
<form onSubmit={handleSubmit(onSubmit)} className="flex flex-col gap-2.5">
{formState.isSubmitting && <>Okey!</>}
<form
onSubmit={handleSubmit(onSubmit)}
className="flex flex-col gap-2.5 dark:text-green-primary space-y-5"
>
{formState.isSubmitSuccessful && (
<p className="bg-green-700 text-white p-2.5 rounded-lg">OK!</p>
)}
<label>
Nome
<Input {...register("name")} />