Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 9832 Rev 9833
Línea 16... Línea 16...
16
  const { handleSubmit, register, setValue, errors } = useForm()
16
  const { handleSubmit, register, setValue, errors } = useForm()
Línea 17... Línea 17...
17
 
17
 
18
  const [inputErrors, setInputErrors] = useState({})
18
  const [inputErrors, setInputErrors] = useState({})
19
  const [location, setLocation] = useState({})
19
  const [location, setLocation] = useState({})
20
  const [isActive, setIsActive] = useState(false)
20
  const [isActive, setIsActive] = useState(false)
21
  const [year, setYear] = useState(new Date())
21
  const [year, setYear] = useState('')
22
  const [locationLabel, setLocationLabel] = useState('')
22
  const [locationLabel, setLocationLabel] = useState('')
23
  const [jobsDescriptions, setJobsDescriptions] = useState([
23
  const [jobsDescriptions, setJobsDescriptions] = useState([
24
    {
24
    {
25
      value: "8ff86a9a-651c-4dd0-86c1-b9c0716d09e0",
25
      value: "8ff86a9a-651c-4dd0-86c1-b9c0716d09e0",
Línea 48... Línea 48...
48
      status: isActive ? "a" : "i"
48
      status: isActive ? "a" : "i"
49
    }
49
    }
Línea 50... Línea 50...
50
 
50
 
51
    if (!location.formatted_address) { return setInputErrors({ ...inputErrors, location: "Empty location" }) }
51
    if (!location.formatted_address) { return setInputErrors({ ...inputErrors, location: "Empty location" }) }
-
 
52
    if (!year) { return setInputErrors({ ...inputErrors, year: "Empty last day" }) }
-
 
53
 
52
    if (!year) { return setInputErrors({ ...inputErrors, year: "Empty last day" }) }
54
    console.log(submitData)
Línea 53... Línea 55...
53
  }
55
  }
Línea 54... Línea 56...
54
 
56