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
name="medicalExpiration"
control={control}
render={({ field }) => <DatePicker />}
render={() => <DatePicker />}
/>
</div>
</AccordionBody>

View File

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

View File

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