adding pilots
This commit is contained in:
@@ -28,7 +28,7 @@ const PilotFormCertificates: React.FC<IPilotFormCertificates> = ({
|
|||||||
{fields.map((field, index) => {
|
{fields.map((field, index) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div>
|
<div className="col-span-1">
|
||||||
<Controller
|
<Controller
|
||||||
name={`certificates.${index}.type`}
|
name={`certificates.${index}.type`}
|
||||||
control={control}
|
control={control}
|
||||||
@@ -55,7 +55,7 @@ const PilotFormCertificates: React.FC<IPilotFormCertificates> = ({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div className="col-span-1">
|
||||||
<Controller
|
<Controller
|
||||||
name={`certificates.${index}.number`}
|
name={`certificates.${index}.number`}
|
||||||
control={control}
|
control={control}
|
||||||
@@ -64,7 +64,7 @@ const PilotFormCertificates: React.FC<IPilotFormCertificates> = ({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div className="col-span-1">
|
||||||
<Controller
|
<Controller
|
||||||
name={`certificates.${index}.dateOfIssue`}
|
name={`certificates.${index}.dateOfIssue`}
|
||||||
control={control}
|
control={control}
|
||||||
@@ -82,7 +82,7 @@ const PilotFormCertificates: React.FC<IPilotFormCertificates> = ({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div className="col-span-1">
|
||||||
<Button onClick={() => remove(index)}>Remove</Button>
|
<Button onClick={() => remove(index)}>Remove</Button>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ const PilotFormEndorsements: React.FC<IPilotFormEndorsements> = ({
|
|||||||
{fields.map((field, index) => {
|
{fields.map((field, index) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div>
|
<div className="col-span-1">
|
||||||
<Controller
|
<Controller
|
||||||
name={`endorsements.${index}.type`}
|
name={`endorsements.${index}.type`}
|
||||||
control={control}
|
control={control}
|
||||||
@@ -52,7 +52,7 @@ const PilotFormEndorsements: React.FC<IPilotFormEndorsements> = ({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div className="col-span-1">
|
||||||
<Controller
|
<Controller
|
||||||
name={`endorsements.${index}.dateOfIssue`}
|
name={`endorsements.${index}.dateOfIssue`}
|
||||||
control={control}
|
control={control}
|
||||||
@@ -70,7 +70,7 @@ const PilotFormEndorsements: React.FC<IPilotFormEndorsements> = ({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div className="col-span-1">
|
||||||
<Button onClick={() => remove(index)}>Remove</Button>
|
<Button onClick={() => remove(index)}>Remove</Button>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user