Feature/4 pilots add #20
@@ -166,7 +166,7 @@ const PilotForm: React.FC<unknown> = () => {
|
||||
<Controller
|
||||
name="medicalExpiration"
|
||||
control={control}
|
||||
render={({ field }) => <DatePicker />}
|
||||
render={() => <DatePicker />}
|
||||
/>
|
||||
</div>
|
||||
</AccordionBody>
|
||||
|
||||
@@ -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 />;
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -65,7 +65,7 @@ const PilotFormEndorsements: React.FC<IPilotFormEndorsements> = ({
|
||||
<Controller
|
||||
name={`endorsements.${index}.dateOfIssue`}
|
||||
control={control}
|
||||
render={({ field }) => {
|
||||
render={() => {
|
||||
return <DatePicker />;
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user