mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
pass className through
This commit is contained in:
@@ -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) && (
|
||||
|
||||
Reference in New Issue
Block a user