pass className through

This commit is contained in:
Oliver Bryan
2025-12-14 20:53:56 +00:00
parent df73b0f5ea
commit 292ffa0c05

View File

@@ -1,18 +1,21 @@
import type { IssueRecord } from "@issue/shared";
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
import { cn } from "@/lib/utils";
export function IssuesTable({
issues,
columns = {},
issueSelectAction,
className,
}: {
issues: IssueRecord[];
columns?: { id?: boolean; title?: boolean; description?: boolean; assignee?: boolean };
issueSelectAction?: (issue: IssueRecord) => void;
className: string;
}) {
if (issues.length === 0) return;
return (
<Table>
<Table className={cn(className)}>
<TableHeader>
<TableRow hoverEffect={false}>
{(columns.id == null || columns.id === true) && (