adding pilots

This commit is contained in:
2024-07-28 08:33:30 -05:00
parent 84bdd89ec3
commit 2cffcc5180
2 changed files with 7 additions and 7 deletions

View File

@@ -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>
</> </>

View File

@@ -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>
</> </>