From 7291ca7cc9d8b37c78c4c40ad61638484976bf8a Mon Sep 17 00:00:00 2001 From: Noah Spannbauer Date: Sun, 17 Nov 2024 07:21:37 -0600 Subject: [PATCH] adding new logbook entry --- .../PilotFormCertificates.tsx | 260 +++++++++--------- .../PilotFormEndorsements.tsx | 232 ++++++++-------- 2 files changed, 246 insertions(+), 246 deletions(-) diff --git a/app/src/components/pilotFormCertificates/PilotFormCertificates.tsx b/app/src/components/pilotFormCertificates/PilotFormCertificates.tsx index fe1d7bc..f4c4df3 100644 --- a/app/src/components/pilotFormCertificates/PilotFormCertificates.tsx +++ b/app/src/components/pilotFormCertificates/PilotFormCertificates.tsx @@ -1,134 +1,134 @@ -import { IPilotFormCertificates } from './IPilotFormCertificates'; -import { - Button, - DatePicker, - Input, - Option, - PlusIcon, - Select, - TrashIcon, - Typography -} from '@noahspan/noahspan-components'; -import { Controller, useFieldArray, useFormContext } from 'react-hook-form'; +// import { IPilotFormCertificates } from './IPilotFormCertificates'; +// import { +// Button, +// DatePicker, +// Input, +// Option, +// PlusIcon, +// Select, +// TrashIcon, +// Typography +// } from '@noahspan/noahspan-components'; +// import { Controller, useFieldArray, useFormContext } from 'react-hook-form'; -const PilotFormCertificates: React.FC = ({ - certificates -}: IPilotFormCertificates) => { - const { - control, - formState: { errors }, - setValue - } = useFormContext(); +// const PilotFormCertificates: React.FC = ({ +// certificates +// }: IPilotFormCertificates) => { +// const { +// control, +// formState: { errors }, +// setValue +// } = useFormContext(); - const { fields, append, remove } = useFieldArray({ - name: 'certificates', - control - }); +// const { fields, append, remove } = useFieldArray({ +// name: 'certificates', +// control +// }); - return ( - <> - {fields.length > 0 && ( - <> -
- Type -
-
- Number -
-
- Date of Issue -
-
- - )} - {fields.map((field, index) => { - return ( - <> -
- { - return ( - - ); - }} - /> -
-
- { - return ; - }} - /> -
-
- { - return ( - { - setValue(`certificates.${index}.dateOfIssue`, date); - }} - inputProps={{ - value: field.value - }} - /> - ); - }} - /> -
-
- -
- - ); - })} -
- -
- - ); -}; +// return ( +// <> +// {fields.length > 0 && ( +// <> +//
+// Type +//
+//
+// Number +//
+//
+// Date of Issue +//
+//
+// +// )} +// {fields.map((field, index) => { +// return ( +// <> +//
+// { +// return ( +// +// ); +// }} +// /> +//
+//
+// { +// return ; +// }} +// /> +//
+//
+// { +// return ( +// { +// setValue(`certificates.${index}.dateOfIssue`, date); +// }} +// inputProps={{ +// value: field.value +// }} +// /> +// ); +// }} +// /> +//
+//
+// +//
+// +// ); +// })} +//
+// +//
+// +// ); +// }; -export default PilotFormCertificates; +// export default PilotFormCertificates; diff --git a/app/src/components/pilotFormEndorsements/PilotFormEndorsements.tsx b/app/src/components/pilotFormEndorsements/PilotFormEndorsements.tsx index c914dce..84ba899 100644 --- a/app/src/components/pilotFormEndorsements/PilotFormEndorsements.tsx +++ b/app/src/components/pilotFormEndorsements/PilotFormEndorsements.tsx @@ -1,120 +1,120 @@ -import { IPilotFormEndorsements } from './IPilotFormEndorsements'; -import { - Button, - DatePicker, - Input, - Option, - PlusIcon, - Select, - TrashIcon, - Typography -} from '@noahspan/noahspan-components'; -import { Controller, useFieldArray, useFormContext } from 'react-hook-form'; +// import { IPilotFormEndorsements } from './IPilotFormEndorsements'; +// import { +// Button, +// DatePicker, +// Input, +// Option, +// PlusIcon, +// Select, +// TrashIcon, +// Typography +// } from '@noahspan/noahspan-components'; +// import { Controller, useFieldArray, useFormContext } from 'react-hook-form'; -const PilotFormEndorsements: React.FC = ({ - endorsements -}: IPilotFormEndorsements) => { - const { - control, - formState: { errors }, - setValue - } = useFormContext(); +// const PilotFormEndorsements: React.FC = ({ +// endorsements +// }: IPilotFormEndorsements) => { +// const { +// control, +// formState: { errors }, +// setValue +// } = useFormContext(); - const { fields, append, remove } = useFieldArray({ - name: 'endorsements', - control - }); +// const { fields, append, remove } = useFieldArray({ +// name: 'endorsements', +// control +// }); - return ( - <> - {fields.length > 0 && ( - <> -
- Type -
-
- Date of Issue -
-
-
- - )} - {fields.map((field, index) => { - return ( - <> -
- { - return ( - - ); - }} - /> -
-
- { - return ( - { - setValue(`endorsements.${index}.dateOfIssue`, date); - }} - inputProps={{ - value: field.value - }} - /> - ); - }} - /> -
-
- -
- - ); - })} -
- -
- - ); -}; +// return ( +// <> +// {fields.length > 0 && ( +// <> +//
+// Type +//
+//
+// Date of Issue +//
+//
+//
+// +// )} +// {fields.map((field, index) => { +// return ( +// <> +//
+// { +// return ( +// +// ); +// }} +// /> +//
+//
+// { +// return ( +// { +// setValue(`endorsements.${index}.dateOfIssue`, date); +// }} +// inputProps={{ +// value: field.value +// }} +// /> +// ); +// }} +// /> +//
+//
+// +//
+// +// ); +// })} +//
+// +//
+// +// ); +// }; -export default PilotFormEndorsements; +// export default PilotFormEndorsements;