Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 14235 Rev 14236
Línea 20... Línea 20...
20
	const { action } = useParams()
20
	const { action } = useParams()
21
	const {
21
	const {
22
		setValue,
22
		setValue,
23
		register,
23
		register,
24
		watch,
24
		watch,
25
		handleSubmit,
25
		handleSubmit
26
		errors,
-
 
27
		clearErrors
-
 
28
	} = useForm()
26
	} = useForm()
Línea 29... Línea 27...
29
 
27
 
30
	//States
28
	//States
31
	const [supervisers, setSupervisers] = useState([])
29
	const [supervisers, setSupervisers] = useState([])
Línea 162... Línea 160...
162
												</div>
160
												</div>
163
												<div className="d-flex">
161
												<div className="d-flex">
164
													<div className="form-group w-100">
162
													<div className="form-group w-100">
165
														<label>Objetivo</label>
163
														<label>Objetivo</label>
166
														<CKEditor
164
														<CKEditor
167
															onChange={(e) => {
165
															data={initObjectives}
168
																const text = e.editor.getData()
-
 
169
																setValue('objectives', text)
166
															onChange={(e) => setValue('objectives', e.editor.getData())}
170
																if (errors.objectives) {
-
 
171
																	clearErrors('objectives')
-
 
172
																}
-
 
173
															}}
-
 
174
															initData={initObjectives}
167
															onInstanceReady={(e) => e.editor.setData(initObjectives)}
175
															config={config}
168
															config={config}
176
															name="objectives"
169
															name="objectives"
177
														/>
170
														/>
178
													</div>
171
													</div>
179
												</div>
172
												</div>
180
												<div className="d-flex">
173
												<div className="d-flex">
181
													<div className="form-group w-100">
174
													<div className="form-group w-100">
182
														<label>Funciones</label>
175
														<label>Funciones</label>
183
														<CKEditor
176
														<CKEditor
-
 
177
															data={initFunctions}
184
															onChange={(e) => setValue('functions', e.editor.getData())}
178
															onChange={(e) => setValue('functions', e.editor.getData())}
185
															initData={initFunctions}
179
															onInstanceReady={(e) => e.editor.setData(initFunctions)}
186
															config={config}
180
															config={config}
187
															name="functions"
181
															name="functions"
188
														/>
182
														/>
189
													</div>
183
													</div>
190
												</div>
184
												</div>