fix(dashboard): add typing for data table meta

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-05-14 09:20:34 +02:00
parent ab2f711880
commit e0c356701f

View File

@@ -6,7 +6,7 @@ import {
getCoreRowModel,
useReactTable,
} from '@tanstack/react-table';
import type { ColumnDef } from '@tanstack/react-table';
import type { ColumnDef, RowData } from '@tanstack/react-table';
import { Grid, GridBody, GridCell, GridHeader, GridRow } from './grid-table';
@@ -15,6 +15,13 @@ interface DataTableProps<TData> {
data: TData[];
}
declare module '@tanstack/react-table' {
// eslint-disable-next-line
interface ColumnMeta<TData extends RowData, TValue> {
className?: string;
}
}
export const ACTIONS = '__actions__';
export function TableButtons({