import { FormControl, Grid } from "@mui/material"; import PropTypes from "prop-types"; import Input from "../common/Input"; import SingleSelect from "../common/SingleSelect"; //import TextArea from "../TextArea"; const MergePatientForm = ({ values, touched, handleBlur, errors, handleChange, // setFieldValue, handleSubmit, }) => { MergePatientForm.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 Patient=["#","#","#"] return (
{ const syntheticEvent = { target: { name: "used", value: newValue, }, }; handleChange(syntheticEvent); }} onBlur={handleBlur} type="text" helperText={ errors.used && touched.used ? ( {errors.used} ) : null } /> { const syntheticEvent = { target: { name: "merged", value: newValue, }, }; handleChange(syntheticEvent); }} // onChange={handleChange} onBlur={handleBlur} type="text" helperText={ errors.merged && touched.merged ? ( {errors.merged} ) : null } />
); }; export default MergePatientForm;