feat: add webhook logs (#2237)

This commit is contained in:
David Nguyen
2025-11-25 16:03:52 +11:00
committed by GitHub
parent 11a56f3228
commit d857dfdb38
17 changed files with 1663 additions and 411 deletions

View File

@@ -21,6 +21,8 @@ export interface DataTableProps<TData, TValue> {
columns: ColumnDef<TData, TValue>[];
columnVisibility?: VisibilityState;
data: TData[];
onRowClick?: (row: TData) => void;
rowClassName?: string;
perPage?: number;
currentPage?: number;
totalPages?: number;
@@ -52,6 +54,8 @@ export function DataTable<TData, TValue>({
hasFilters,
onClearFilters,
onPaginationChange,
onRowClick,
rowClassName,
children,
emptyState,
}: DataTableProps<TData, TValue>) {
@@ -116,7 +120,12 @@ export function DataTable<TData, TValue>({
<TableBody>
{table.getRowModel().rows?.length ? (
table.getRowModel().rows.map((row) => (
<TableRow key={row.id} data-state={row.getIsSelected() && 'selected'}>
<TableRow
key={row.id}
data-state={row.getIsSelected() && 'selected'}
className={rowClassName}
onClick={() => onRowClick?.(row.original)}
>
{row.getVisibleCells().map((cell) => (
<TableCell
key={cell.id}