import { FormControl, Grid, TextField } from "@mui/material"; import PropTypes from "prop-types"; import Input from "../common/Input"; import SingleSelect from "../common/SingleSelect" import MultipleSelect from "../common/MultipleSelect"; import { InputLabel, MenuItem, Select } from "@mui/material"; import Autocomplete from "@mui/material/Autocomplete"; import { useState } from "react"; import MultiCheckbox from "./MultiCheckbox"; const MergeStationForm = ({ values, touched, handleBlur, errors, handleChange, setFieldValue, handleSubmit, }) => { MergeStationForm.propTypes = { values: PropTypes.object.isRequired, touched: PropTypes.object.isRequired, errors: PropTypes.object.isRequired, handleBlur: PropTypes.func.isRequired, handleChange: PropTypes.func.isRequired, setFieldValue: PropTypes.func.isRequired, handleSubmit: PropTypes.func.isRequired, }; const Record = ["#", "##"]; const Recoreds = ["## ", "#"]; return (
{ const syntheticEvent = { target: { name: "record", value: newValue, }, }; handleChange(syntheticEvent); }} onBlur={handleBlur} type="text" helperText={ errors.record && touched.record ? ( {errors.record} ) : null } /> { const syntheticEvent = { target: { name: "records", value: newValue, }, }; handleChange(syntheticEvent); }} // onChange={handleChange} onBlur={handleBlur} type="text" helperText={ errors.records && touched.records ? ( {errors.records} ) : null } />
); }; export default MergeStationForm;