diff --git a/packages/common/components/src/ui/data-table/index.tsx b/packages/common/components/src/ui/data-table/index.tsx index 8dc30c701..c2c8c3591 100644 --- a/packages/common/components/src/ui/data-table/index.tsx +++ b/packages/common/components/src/ui/data-table/index.tsx @@ -38,12 +38,17 @@ function THead({ table }: { table: TableType }) { type TableProps = { table: TableType; + variant?: "default" | "secondary" | "line"; onRowClick?: (row: T) => void; }; -function DataTable({ table, onRowClick }: TableProps) { +function DataTable({ + table, + variant = "default", + onRowClick, +}: TableProps) { return ( - +
{table.getRowModel().rows.map((row) => (