Feature/62 limit pilot data for non auth users #69

Merged
noahspannbauer merged 3 commits from feature/62-limit-pilot-data-for-non-auth-users into main 2025-03-18 11:08:50 -04:00
3 changed files with 15 additions and 3 deletions
Showing only changes of commit b8b52fa5af - Show all commits

View File

@@ -205,7 +205,6 @@ const LogForm: React.FC<ILogFormProps> = ({
name="pilotId"
control={methods.control}
render={({ field: { onChange, value } }) => {
console.log(value)
return (
<Select
disabled={state.isDisabled}

View File

@@ -177,6 +177,20 @@ const Logbook: React.FC<unknown> = () => {
accessorKey: 'notes',
header: 'Notes'
},
{
header: 'Actions',
meta: {
align: 'center',
headerAlign: 'center'
},
cell: (info: any) => (
<ActionMenu
id={info.row.original.rowKey}
onDelete={onDeleteEntry}
onOpenCloseForm={onOpenCloseEntryForm}
/>
)
}
]
const authColumns: ColumnDef<ILogbookEntry>[] = [

View File

@@ -113,7 +113,6 @@ const PilotForm: React.FC<IPilotFormProps> = ({
};
const onSubmit = async (data: unknown) => {
console.log(data)
try {
setIsLoading(true);
@@ -167,7 +166,7 @@ const PilotForm: React.FC<IPilotFormProps> = ({
pilot.certificates = JSON.parse(pilot.certificates);
pilot.endorsements = JSON.parse(pilot.endorsements)
console.log(pilot)
setSelectedPerson({
userPrincipalName: pilot.id,
displayName: pilot.name