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 PilotFormEndorsements: React.FC<IPilotFormEndorsements> = ({
{fields.map((field, index) => {
return (
<>
<div>
<div className="col-span-1">
<Controller
name={`endorsements.${index}.type`}
control={control}
@@ -52,7 +52,7 @@ const PilotFormEndorsements: React.FC<IPilotFormEndorsements> = ({
}}
/>
</div>
<div>
<div className="col-span-1">
<Controller
name={`endorsements.${index}.dateOfIssue`}
control={control}
@@ -70,7 +70,7 @@ const PilotFormEndorsements: React.FC<IPilotFormEndorsements> = ({
}}
/>
</div>
<div>
<div className="col-span-1">
<Button onClick={() => remove(index)}>Remove</Button>
</div>
</>