adding pilots
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
|||||||
DatePicker,
|
DatePicker,
|
||||||
Input,
|
Input,
|
||||||
Option,
|
Option,
|
||||||
|
PlusIcon,
|
||||||
Select
|
Select
|
||||||
} from '@noahspan/noahspan-components';
|
} from '@noahspan/noahspan-components';
|
||||||
import { Controller, useFieldArray, useFormContext } from 'react-hook-form';
|
import { Controller, useFieldArray, useFormContext } from 'react-hook-form';
|
||||||
@@ -89,6 +90,7 @@ const PilotFormCertificates: React.FC<IPilotFormCertificates> = ({
|
|||||||
})}
|
})}
|
||||||
<div className="col-span-4">
|
<div className="col-span-4">
|
||||||
<Button
|
<Button
|
||||||
|
className="flex items-center gap-3"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
append({
|
append({
|
||||||
type: '',
|
type: '',
|
||||||
@@ -96,8 +98,10 @@ const PilotFormCertificates: React.FC<IPilotFormCertificates> = ({
|
|||||||
dateOfIssue: null
|
dateOfIssue: null
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
|
variant="outlined"
|
||||||
>
|
>
|
||||||
Add
|
<PlusIcon size="lg" />
|
||||||
|
Add Certificate
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import {
|
|||||||
DatePicker,
|
DatePicker,
|
||||||
Input,
|
Input,
|
||||||
Option,
|
Option,
|
||||||
|
PlusIcon,
|
||||||
Select
|
Select
|
||||||
} from '@noahspan/noahspan-components';
|
} from '@noahspan/noahspan-components';
|
||||||
import { Controller, useFieldArray, useFormContext } from 'react-hook-form';
|
import { Controller, useFieldArray, useFormContext } from 'react-hook-form';
|
||||||
@@ -77,6 +78,7 @@ const PilotFormEndorsements: React.FC<IPilotFormEndorsements> = ({
|
|||||||
})}
|
})}
|
||||||
<div className="col-span-4">
|
<div className="col-span-4">
|
||||||
<Button
|
<Button
|
||||||
|
className="flex items-center gap-3"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
append({
|
append({
|
||||||
type: '',
|
type: '',
|
||||||
@@ -84,7 +86,9 @@ const PilotFormEndorsements: React.FC<IPilotFormEndorsements> = ({
|
|||||||
dateOfIssue: null
|
dateOfIssue: null
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
|
variant="outlined"
|
||||||
>
|
>
|
||||||
|
<PlusIcon size="lg" />
|
||||||
Add
|
Add
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user