Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6770 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6770 Rev 6775
Línea 15... Línea 15...
15
  id = '',
15
  id = '',
16
  closeModal = function () {},
16
  closeModal = function () {},
17
  onComplete = function () {},
17
  onComplete = function () {},
18
}) => {
18
}) => {
19
  const [loading, setLoading] = useState(false)
19
  const [loading, setLoading] = useState(false)
20
  const { register, errors, handleSubmit, setValue } = useForm()
-
 
21
  const dispatch = useDispatch()
20
  const dispatch = useDispatch()
Línea -... Línea 21...
-
 
21
 
-
 
22
  const { register, errors, handleSubmit, setValue } = useForm()
22
 
23
 
23
  useEffect(() => {
24
  useEffect(() => {
24
    register('description', { required: 'Este campo es requerido' })
25
    register('description', { required: 'Este campo es requerido' })
Línea 25... Línea 26...
25
  }, [])
26
  }, [])