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"; import TrainingScheduleList from "./TrainingScheduleList"; const TrainingScheduleForm = ({ values, touched, handleBlur, errors, handleChange, setFieldValue, handleSubmit, }) => { TrainingScheduleForm.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 statusselect = ["ACTIVE", "INACTIVE"]; const programselect = ["FIRE SAFETY TRAINING", "First Aid Trainig", "FITNESS", "IMS","OVERWEIGHT","Tb Free Workplace"]; return (
{ const syntheticEvent = { target: { name: "programName", value: newValue, }, }; handleChange(syntheticEvent); }} // onChange={handleChange} onBlur={handleBlur} type="text" helperText={ errors.programName && touched.programName ? ( {errors.programName} ) : null } /> {errors.fromDate} ) : null } /> {errors.toDate} ) : null } /> {errors.trainerName} ) : null } /> {errors.location} ) : null } /> { const syntheticEvent = { target: { name: "status", value: newValue, }, }; handleChange(syntheticEvent); }} onBlur={handleBlur} type="text" helperText={ errors.status && touched.status ? ( {errors.status} ) : null } /> {errors.remark} ) : null } />
); }; export default TrainingScheduleForm;