mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
pass className through
This commit is contained in:
@@ -1,18 +1,21 @@
|
|||||||
import type { IssueRecord } from "@issue/shared";
|
import type { IssueRecord } from "@issue/shared";
|
||||||
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
|
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
|
||||||
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
export function IssuesTable({
|
export function IssuesTable({
|
||||||
issues,
|
issues,
|
||||||
columns = {},
|
columns = {},
|
||||||
issueSelectAction,
|
issueSelectAction,
|
||||||
|
className,
|
||||||
}: {
|
}: {
|
||||||
issues: IssueRecord[];
|
issues: IssueRecord[];
|
||||||
columns?: { id?: boolean; title?: boolean; description?: boolean; assignee?: boolean };
|
columns?: { id?: boolean; title?: boolean; description?: boolean; assignee?: boolean };
|
||||||
issueSelectAction?: (issue: IssueRecord) => void;
|
issueSelectAction?: (issue: IssueRecord) => void;
|
||||||
|
className: string;
|
||||||
}) {
|
}) {
|
||||||
if (issues.length === 0) return;
|
if (issues.length === 0) return;
|
||||||
return (
|
return (
|
||||||
<Table>
|
<Table className={cn(className)}>
|
||||||
<TableHeader>
|
<TableHeader>
|
||||||
<TableRow hoverEffect={false}>
|
<TableRow hoverEffect={false}>
|
||||||
{(columns.id == null || columns.id === true) && (
|
{(columns.id == null || columns.id === true) && (
|
||||||
|
|||||||
Reference in New Issue
Block a user