adding pilot

This commit is contained in:
2024-07-28 11:00:58 -05:00
parent 7728a1666a
commit ac52c5335f
4 changed files with 24 additions and 10 deletions

View File

@@ -5,7 +5,8 @@ import {
Input,
Option,
PlusIcon,
Select
Select,
TrashIcon
} from '@noahspan/noahspan-components';
import { Controller, useFieldArray, useFormContext } from 'react-hook-form';
@@ -71,7 +72,13 @@ const PilotFormEndorsements: React.FC<IPilotFormEndorsements> = ({
/>
</div>
<div className="col-span-1">
<Button onClick={() => remove(index)}>Remove</Button>
<Button
className="flex items-center gap-3"
onClick={() => remove(index)}
>
<TrashIcon size="lg" />
Delete
</Button>
</div>
</>
);
@@ -89,7 +96,7 @@ const PilotFormEndorsements: React.FC<IPilotFormEndorsements> = ({
variant="outlined"
>
<PlusIcon size="lg" />
Add
Add Endorsement
</Button>
</div>
</>