add pilot
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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 />;
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -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 />;
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user