removed unneeded fields from item including needsTraining

This commit is contained in:
jackiettran
2025-11-24 17:31:09 -05:00
parent 34bbf06f0c
commit bb16d659bd
5 changed files with 0 additions and 42 deletions

View File

@@ -1,32 +1,17 @@
import React from 'react';
interface RulesFormProps {
needsTraining: boolean;
rules: string;
onChange: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
}
const RulesForm: React.FC<RulesFormProps> = ({
needsTraining,
rules,
onChange
}) => {
return (
<div className="card mb-4">
<div className="card-body">
<div className="form-check mb-3">
<input
type="checkbox"
className="form-check-input"
id="needsTraining"
name="needsTraining"
checked={needsTraining}
onChange={onChange}
/>
<label className="form-check-label" htmlFor="needsTraining">
Requires in-person training before rental
</label>
</div>
<label htmlFor="rules" className="form-label">
Additional Rules
</label>