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 SlotsListForm =({ values, touched, handleBlur, errors, handleChange, // setFieldValue, handleSubmit, }) => { SlotsListForm.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 CaseType =["#","#","#"] return (
{errors.date} ) : null } /> { const syntheticEvent = { target: { name: "doctorname", value: newValue, }, }; handleChange(syntheticEvent); }} onBlur={handleBlur} type="text" helperText={ errors.doctorname && touched.doctorname ? ( {errors.doctorname} ) : null } /> { const syntheticEvent = { target: { name: "casetype", value: newValue, }, }; handleChange(syntheticEvent); }} // onChange={handleChange} onBlur={handleBlur} type="text" helperText={ errors.casetype && touched.casetype ? ( {errors.casetype} ) : null } />
); }; export default SlotsListForm;