Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15123 Rev 15124
Línea 28... Línea 28...
28
	const [year, setYear] = useState(new Date())
28
	const [year, setYear] = useState(new Date())
29
	const [locationLabel, setLocationLabel] = useState('')
29
	const [locationLabel, setLocationLabel] = useState('')
30
	const [jobsDescriptions, setJobsDescriptions] = useState([])
30
	const [jobsDescriptions, setJobsDescriptions] = useState([])
31
	const [jobsCategory, setJobsCategory] = useState([])
31
	const [jobsCategory, setJobsCategory] = useState([])
32
	const [industry, setIndustry] = useState([])
32
	const [industry, setIndustry] = useState([])
-
 
33
	const [description, setDescription] = useState('')
Línea 33... Línea 34...
33
 
34
 
Línea 34... Línea 35...
34
 
35
 
Línea 116... Línea 117...
116
							city2: respData.city2,
117
							city2: respData.city2,
117
							country: respData.country,
118
							country: respData.country,
118
							postal_code: respData.postal_code,
119
							postal_code: respData.postal_code,
119
							state: respData.state
120
							state: respData.state
120
						})
121
						})
121
						setValue('description', respData.description)
122
						setDescription(respData.description)
122
						setYear(new Date(respData.last_date))
123
						setYear(new Date(respData.last_date))
Línea 123... Línea 124...
123
 
124
 
Línea 124... Línea 125...
124
						respData.status === 'a' ? setIsActive(true) : setIsActive(false)
125
						respData.status === 'a' ? setIsActive(true) : setIsActive(false)
Línea 220... Línea 221...
220
							/>
221
							/>
221
							{inputErrors.year && <p>{inputErrors.year}</p>}
222
							{inputErrors.year && <p>{inputErrors.year}</p>}
222
						</div>
223
						</div>
223
						<div className="form-group">
224
						<div className="form-group">
224
							<label>Descripción</label>
225
							<label>Descripción</label>
-
 
226
							{description
225
							<CKEditor
227
								? <CKEditor
226
								onChange={(e) => setValue('description', e.editor.getData())}
228
									onChange={(e) => setValue('description', e.editor.getData())}
227
								onInstanceReady={(e) =>
229
									onInstanceReady={(e) => e.editor.setData(description)}
228
									getValues('description')
230
									config={config} />
229
										? e.editor.setData(getValues('description'))
231
								: <CKEditor
230
										: e.editor.setData('')
232
									onChange={(e) => setValue('description', e.editor.getData())}
231
								}
-
 
232
								config={config}
233
									config={config} />
233
							/>
234
							}
234
 
-
 
235
						</div>
235
						</div>
236
						<div className="form-group">
236
						<div className="form-group">
237
							<label>Estatus</label>
237
							<label>Estatus</label>
238
							<div
238
							<div
239
								className={`toggle btn btn-block btn-primary ${!isActive && 'off'}`}
239
								className={`toggle btn btn-block btn-primary ${!isActive && 'off'}`}