diff --git a/client/src/components/logForm/LogFormState.interface.ts b/client/src/components/logForm/LogFormState.interface.ts index 6f14e09..8a9f95f 100644 --- a/client/src/components/logForm/LogFormState.interface.ts +++ b/client/src/components/logForm/LogFormState.interface.ts @@ -1,4 +1,3 @@ -import { Selection } from "@heroui/react"; import { Alert } from "../../interfaces/Alert.interface"; export interface LogFormState { diff --git a/client/src/components/logForm/reducer.tsx b/client/src/components/logForm/reducer.tsx index 6b3143a..84f6714 100644 --- a/client/src/components/logForm/reducer.tsx +++ b/client/src/components/logForm/reducer.tsx @@ -1,6 +1,5 @@ import { Alert } from '../../interfaces/Alert.interface'; import { LogFormState } from './LogFormState.interface'; -import { Selection } from '@heroui/react'; type Action = | { type: 'SET_ALERT'; payload: Alert | undefined } diff --git a/client/src/components/logbook/columns.tsx b/client/src/components/logbook/columns.tsx index 5d21d56..34fb854 100644 --- a/client/src/components/logbook/columns.tsx +++ b/client/src/components/logbook/columns.tsx @@ -48,7 +48,7 @@ const route: ColumnDef = { id: 'route', header: 'Route of Flight', meta: { - headerAlign: 'center', + headerAlign: 'text-center', className: 'border-l border-base-400' }, columns: [ @@ -69,8 +69,8 @@ const durationOfFlight: ColumnDef = { accessorKey: 'durationOfFlight', header: 'Duration Of Flight', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' }, cell: (info: CellContext) => info.getValue() ? parseFloat(info.getValue() as string).toFixed(1) : '', @@ -107,8 +107,8 @@ export const authColumns: ColumnDef[] = [ accessorKey: 'singleEngineLand', header: 'Single Engine Land', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' }, cell: (info: CellContext) => info.getValue() ? parseFloat(info.getValue() as string).toFixed(1) : '', @@ -118,7 +118,7 @@ export const authColumns: ColumnDef[] = [ id: 'landings', header: 'Landings', meta: { - headerAlign: 'center' + headerAlign: 'text-center' }, columns: [ { @@ -127,8 +127,8 @@ export const authColumns: ColumnDef[] = [ header: 'Day', footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info) : '', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' } }, { @@ -137,8 +137,8 @@ export const authColumns: ColumnDef[] = [ header: 'Night', footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info) : '', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' } } ] @@ -147,7 +147,7 @@ export const authColumns: ColumnDef[] = [ id: 'instrument', header: 'Instrument', meta: { - headerAlign: 'center' + headerAlign: 'text-center' }, columns: [ { @@ -156,8 +156,8 @@ export const authColumns: ColumnDef[] = [ header: 'Actual', footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : '', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' }, cell: (info: CellContext) => info.getValue() ? parseFloat(info.getValue() as string).toFixed(1) : '', @@ -168,8 +168,8 @@ export const authColumns: ColumnDef[] = [ header: 'Simulated', footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : '', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' }, cell: (info: CellContext) => info.getValue() ? parseFloat(info.getValue() as string).toFixed(1) : '' @@ -180,8 +180,8 @@ export const authColumns: ColumnDef[] = [ header: 'Approaches', footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : '', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' } }, { @@ -190,8 +190,8 @@ export const authColumns: ColumnDef[] = [ header: 'Holds', footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : '', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' } }, { @@ -200,8 +200,8 @@ export const authColumns: ColumnDef[] = [ header: 'Nav/Track', footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : '', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' } } ] @@ -210,7 +210,7 @@ export const authColumns: ColumnDef[] = [ id: 'experienceTraining', header: 'Type of pilot experience or training', meta: { - headerAlign: 'center' + headerAlign: 'text-center' }, columns: [ { @@ -219,8 +219,8 @@ export const authColumns: ColumnDef[] = [ header: 'Ground Training Received', footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : '', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' }, cell: (info: CellContext) => info.getValue() ? parseFloat(info.getValue() as string).toFixed(1) : '' @@ -231,8 +231,8 @@ export const authColumns: ColumnDef[] = [ header: 'Flight Training Received', footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : '', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' }, cell: (info: CellContext) => info.getValue() ? parseFloat(info.getValue() as string).toFixed(1) : '' @@ -243,8 +243,8 @@ export const authColumns: ColumnDef[] = [ header: 'Cross Country', footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : '', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' }, cell: (info: CellContext) => info.getValue() ? parseFloat(info.getValue() as string).toFixed(1) : '' @@ -255,8 +255,8 @@ export const authColumns: ColumnDef[] = [ header: 'Night', footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : '', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' }, cell: (info: CellContext) => info.getValue() ? parseFloat(info.getValue() as string).toFixed(1) : '' @@ -267,8 +267,8 @@ export const authColumns: ColumnDef[] = [ header: 'Solo', footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : '', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' }, cell: (info: CellContext) => info.getValue() ? parseFloat(info.getValue() as string).toFixed(1) : '' @@ -279,8 +279,8 @@ export const authColumns: ColumnDef[] = [ header: 'Pilot In Command', footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : '', meta: { - align: 'right', - headerAlign: 'right' + align: 'text-right', + headerAlign: 'text-right' }, cell: (info: CellContext) => info.getValue() ? parseFloat(info.getValue() as string).toFixed(1) : '' diff --git a/client/src/hero.ts b/client/src/hero.ts deleted file mode 100644 index 6dbf071..0000000 --- a/client/src/hero.ts +++ /dev/null @@ -1,3 +0,0 @@ -// hero.ts -import { heroui } from "@heroui/react"; -export default heroui(); \ No newline at end of file