Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 9836 Rev 9837
Línea 46... Línea 46...
46
      ...location,
46
      ...location,
47
      last_date: year,
47
      last_date: year,
48
      status: isActive ? "a" : "i"
48
      status: isActive ? "a" : "i"
49
    }
49
    }
Línea -... Línea 50...
-
 
50
 
50
 
51
    if (!location.formatted_address) {
-
 
52
      return setInputErrors(prev => ({ ...prev, location: "Location empty" }))
-
 
53
    }
51
    if (!location.formatted_address) { return console.log("Location empty") }
54
    if (!year) {
-
 
55
      return setInputErrors(prev => ({ ...prev, year: "Year empty" }))
Línea 52... Línea 56...
52
    if (!year) { return console.log("Year empty") }
56
    }
53
 
57
 
Línea 54... Línea 58...
54
    console.log(submitData)
58
    console.log(submitData)
55
  }
59
  }
56
 
60
 
Línea 57... Línea 61...
57
  useEffect(() => {
61
  useEffect(() => {
Línea 58... Línea 62...
58
    console.log(errors)
62
    console.log(inputErrors)
59
  }, [errors])
63
  }, [inputErrors])
Línea 78... Línea 82...
78
                type="text"
82
                type="text"
79
                name="name"
83
                name="name"
80
                className="form-control"
84
                className="form-control"
81
                ref={register({ required: true, maxLength: 120 })}
85
                ref={register({ required: true, maxLength: 120 })}
82
              />
86
              />
-
 
87
              {errors.name && <p>Este campo es requerido</p>}
83
            </div>
88
            </div>
84
            <div className="form-group">
89
            <div className="form-group">
85
              <label>Cargo a evaluar</label>
90
              <label>Cargo a evaluar</label>
86
              <select name="job_description_id" className="form-control" ref={register({ required: true })} onChange={(e) => setJobsDescriptions(e.target.value)}>
91
              <select name="job_description_id" className="form-control" ref={register({ required: true })} onChange={(e) => setJobsDescriptions(e.target.value)}>
87
                {
92
                {
Línea 129... Línea 134...
129
                  setYear(new Intl.DateTimeFormat({ year: 'numeric', month: 'numeric', day: 'numeric' }).format(e.toDate()))
134
                  setYear(new Intl.DateTimeFormat({ year: 'numeric', month: 'numeric', day: 'numeric' }).format(e.toDate()))
130
                }
135
                }
131
                inputProps={{ className: 'form-control' }}
136
                inputProps={{ className: 'form-control' }}
132
                closeOnSelect
137
                closeOnSelect
133
              />
138
              />
-
 
139
 
134
            </div>
140
            </div>
135
            <div className="form-group">
141
            <div className="form-group">
136
              <label>Descripción</label>
142
              <label>Descripción</label>
137
              <DescriptionInput
143
              <DescriptionInput
138
                setValue={setValue}
144
                setValue={setValue}