adding pilots

This commit is contained in:
2024-07-28 08:48:52 -05:00
parent e42dda563f
commit 96a0f3893d
2 changed files with 30 additions and 28 deletions

View File

@@ -1,5 +1,4 @@
import { IPilotFormCertificates } from './IPilotFormCertificates'; import { IPilotFormCertificates } from './IPilotFormCertificates';
// import { Button, DatePicker, Input, Select, SelectItem } from '@nextui-org/react';
import { import {
Button, Button,
DatePicker, DatePicker,
@@ -24,7 +23,7 @@ const PilotFormCertificates: React.FC<IPilotFormCertificates> = ({
}); });
return ( return (
<div className="grid grid-cols-4 gap-4"> <>
{fields.map((field, index) => { {fields.map((field, index) => {
return ( return (
<> <>
@@ -88,18 +87,20 @@ const PilotFormCertificates: React.FC<IPilotFormCertificates> = ({
</> </>
); );
})} })}
<Button <div className="col-span-4">
onClick={() => { <Button
append({ onClick={() => {
type: '', append({
number: '', type: '',
dateOfIssue: null number: '',
}); dateOfIssue: null
}} });
> }}
Add >
</Button> Add
</div> </Button>
</div>
</>
); );
}; };

View File

@@ -1,5 +1,4 @@
import { IPilotFormEndorsements } from './IPilotFormEndorsements'; import { IPilotFormEndorsements } from './IPilotFormEndorsements';
// import { Button, DatePicker, Input, Select, SelectItem } from '@nextui-org/react';
import { import {
Button, Button,
DatePicker, DatePicker,
@@ -24,7 +23,7 @@ const PilotFormEndorsements: React.FC<IPilotFormEndorsements> = ({
}); });
return ( return (
<div className="grid grid-cols-4 gap-4"> <>
{fields.map((field, index) => { {fields.map((field, index) => {
return ( return (
<> <>
@@ -76,18 +75,20 @@ const PilotFormEndorsements: React.FC<IPilotFormEndorsements> = ({
</> </>
); );
})} })}
<Button <div className="col-span-4">
onClick={() => { <Button
append({ onClick={() => {
type: '', append({
number: '', type: '',
dateOfIssue: null number: '',
}); dateOfIssue: null
}} });
> }}
Add >
</Button> Add
</div> </Button>
</div>
</>
); );
}; };