|
@@ -1,4 +1,4 @@
|
1
|
|
-import React, { useEffect } from 'react'
|
|
1
|
+import React from 'react'
|
2
|
2
|
import * as Yup from 'yup';
|
3
|
3
|
// import { useState, useEffect } from 'react';
|
4
|
4
|
import { useFormik, Form, FormikProvider } from 'formik';
|
|
@@ -44,7 +44,7 @@ export function StepTree(props) {
|
44
|
44
|
validationSchema: PlazaScheme,
|
45
|
45
|
});
|
46
|
46
|
|
47
|
|
- const {errors, touched, handleSubmit, getFieldProps, setValues, values} = formik;
|
|
47
|
+ const {errors, touched, handleSubmit, getFieldProps, setValues} = formik;
|
48
|
48
|
return (
|
49
|
49
|
<FormikProvider style={{ padding : 25 }} value={formik}>
|
50
|
50
|
<Form autoComplete="off" noValidate onSubmit={handleSubmit}>
|
|
@@ -58,7 +58,7 @@ export function StepTree(props) {
|
58
|
58
|
getOptionLabel={(option) => {
|
59
|
59
|
return option.label
|
60
|
60
|
}}
|
61
|
|
- onChange={(a,current_list,c,individual,f) => {
|
|
61
|
+ onChange={(_a,current_list,_c,_individual,_f) => {
|
62
|
62
|
setValues({
|
63
|
63
|
puesto:current_list
|
64
|
64
|
})
|