diff --git a/components/LoanRequestForm/LoanRequestForm.tsx b/components/LoanRequestForm/LoanRequestForm.tsx index 5e97d7d2..77066317 100644 --- a/components/LoanRequestForm/LoanRequestForm.tsx +++ b/components/LoanRequestForm/LoanRequestForm.tsx @@ -1,10 +1,16 @@ +"use client"; + import { Button } from "components/Button/Button"; import TextArea from "components/TextArea/TextArea"; import Input from "components/Input/Input"; import React from "react"; import { Link } from "components/Link/Link"; +import { useFormState } from "react-dom"; +import { loanReqFormAction } from "./form-action"; export const LoanRequestForm = () => { + const [errorMsg, formAction] = useFormState(loanReqFormAction, {}); + return (
@@ -20,7 +26,7 @@ export const LoanRequestForm = () => {

-
+

Paso 1 de 2:
Completá los datos del formulario. @@ -30,142 +36,152 @@ export const LoanRequestForm = () => { Datos del adulto responsable

Datos del niño o niña