mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
IssuesTable component
This commit is contained in:
28
packages/frontend/src/components/issues-table.tsx
Normal file
28
packages/frontend/src/components/issues-table.tsx
Normal file
@@ -0,0 +1,28 @@
|
||||
import type { IssueRecord } from "@issue/shared";
|
||||
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
|
||||
|
||||
export function IssuesTable({ issues }: { issues: IssueRecord[] }) {
|
||||
return (
|
||||
<Table>
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
<TableHead>ID</TableHead>
|
||||
<TableHead>Title</TableHead>
|
||||
<TableHead>Description</TableHead>
|
||||
{/* below is kept blank to fill the space, used as the "Assignee" column */}
|
||||
<TableHead></TableHead>
|
||||
</TableRow>
|
||||
</TableHeader>
|
||||
<TableBody>
|
||||
{issues.map((issue) => (
|
||||
<TableRow key={issue.id}>
|
||||
<TableCell className="font-medium">{issue.id}</TableCell>
|
||||
<TableCell>{issue.title}</TableCell>
|
||||
<TableCell>{issue.description}</TableCell>
|
||||
<TableCell>?</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
</TableBody>
|
||||
</Table>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user