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