feat: add webhook logs

This commit is contained in:
David Nguyen
2025-11-24 18:43:59 +11:00
parent ae31860b16
commit c63c1b8963
18 changed files with 1664 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}