import { FormControl, Grid } from "@mui/material"; import PropTypes from "prop-types"; import Input from "../common/Input"; import SingleSelect from "../common/SingleSelect"; const GroupitemsForm = ({ values, touched, handleBlur, errors, handleChange, // setFieldValue, handleSubmit, }) => { GroupitemsForm.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 itemtypeselect=["Capital/non consumeble instruments","other"] const itemnameSelect=["Active","Not Active"] const itemSelect=["Yes","No"] return (
{ const syntheticEvent = { target: { name: "itemtype", value: newValue, }, }; handleChange(syntheticEvent); }} onBlur={handleBlur} type="text" helperText={ errors.itemtype && touched.itemtype ? ( {errors.itemtype} ) : null } /> { const syntheticEvent = { target: { name: "itemname", value: newValue, }, }; handleChange(syntheticEvent); }} onBlur={handleBlur} type="text" helperText={ errors.itemname && touched.itemname ? ( {errors.itemname} ) : null } /> {errors.cost} ) : null } /> { const syntheticEvent = { target: { name: "item", value: newValue, }, }; handleChange(syntheticEvent); }} onBlur={handleBlur} type="text" helperText={ errors.item && touched.item ? ( {errors.item} ) : null } /> {errors.convertedquantity} ) : null } /> {errors.unit} ) : null } /> {errors.delete} ) : null } />
); }; export default GroupitemsForm;