Feature/4 pilots add #20

Merged
noahspannbauer merged 64 commits from feature/4-pilots---add into main 2024-09-23 21:52:59 -04:00
2 changed files with 30 additions and 28 deletions
Showing only changes of commit 96a0f3893d - Show all commits

View File

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

View File

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