add pilot

This commit is contained in:
2024-07-05 06:38:26 -05:00
parent b269cbba29
commit d920220168
3 changed files with 4 additions and 4 deletions

View File

@@ -166,7 +166,7 @@ const PilotForm: React.FC<unknown> = () => {
<Controller <Controller
name="medicalExpiration" name="medicalExpiration"
control={control} control={control}
render={({ field }) => <DatePicker />} render={() => <DatePicker />}
/> />
</div> </div>
</AccordionBody> </AccordionBody>

View File

@@ -59,7 +59,7 @@ const PilotFormCertificates: React.FC<IPilotFormCertificates> = ({
<Controller <Controller
name={`certificates.${index}.number`} name={`certificates.${index}.number`}
control={control} control={control}
render={({ field }) => { render={() => {
return <Input label="Number" {...field} />; return <Input label="Number" {...field} />;
}} }}
/> />
@@ -68,7 +68,7 @@ const PilotFormCertificates: React.FC<IPilotFormCertificates> = ({
<Controller <Controller
name={`certificates.${index}.dateOfIssue`} name={`certificates.${index}.dateOfIssue`}
control={control} control={control}
render={({ field }) => { render={() => {
return <DatePicker />; return <DatePicker />;
}} }}
/> />

View File

@@ -65,7 +65,7 @@ const PilotFormEndorsements: React.FC<IPilotFormEndorsements> = ({
<Controller <Controller
name={`endorsements.${index}.dateOfIssue`} name={`endorsements.${index}.dateOfIssue`}
control={control} control={control}
render={({ field }) => { render={() => {
return <DatePicker />; return <DatePicker />;
}} }}
/> />