Replace useFormStatus and useFormState with useActionState (#748)

This commit is contained in:
Delba de Oliveira
2024-06-19 09:41:51 +01:00
committed by GitHub
parent deca7c766f
commit de76b00263
8 changed files with 100 additions and 86 deletions

View File

@@ -55,7 +55,9 @@ export default function LoginForm() {
</div>
</div>
</div>
<LoginButton />
<Button className="mt-4 w-full">
Log in <ArrowRightIcon className="ml-auto h-5 w-5 text-gray-50" />
</Button>
<div className="flex h-8 items-end space-x-1">
{/* Add form errors here */}
</div>
@@ -63,11 +65,3 @@ export default function LoginForm() {
</form>
);
}
function LoginButton() {
return (
<Button className="mt-4 w-full">
Log in <ArrowRightIcon className="ml-auto h-5 w-5 text-gray-50" />
</Button>
);
}