iipbs_cs #14

Merged
chanii8 merged 18 commits from iipbs_cs into main 2025-04-02 17:35:45 +09:00
Showing only changes of commit 7216d6a74e - Show all commits
@@ -38,12 +38,17 @@ function THead<T>({ table }: { table: TableType<T> }) {
type TableProps<T> = {
table: TableType<T>;
variant?: "default" | "secondary" | "line";
onRowClick?: (row: T) => void;
};
function DataTable<T>({ table, onRowClick }: TableProps<T>) {
function DataTable<T>({
table,
variant = "default",
onRowClick,
}: TableProps<T>) {
return (
<Table className="w-full">
<Table className="w-full" variant={variant}>
<THead table={table} />
<tbody>
{table.getRowModel().rows.map((row) => (