test case page

This commit is contained in:
Takeshi Kimata
2024-02-24 22:45:48 +09:00
parent b09fef7b2c
commit 614e7e8d88
5 changed files with 130 additions and 34 deletions

View File

@@ -18,19 +18,14 @@ import {
} from "@nextui-org/react";
import { MoreVertical } from "lucide-react";
const columns = [
const headerColumns = [
{ name: "ID", uid: "id", sortable: true },
{ name: "Title", uid: "title", sortable: true },
{ name: "Priority", uid: "priority", sortable: true },
{ name: "Actions", uid: "actions" },
];
const priorities = [
{ name: "Critical", uid: "critical", color: "danger" },
{ name: "High", uid: "high", color: "warning" },
{ name: "Medium", uid: "medium", color: "primary" },
{ name: "Low", uid: "low", color: "success" },
];
import priorities from "./priorities";
type Case = {
id: number;
@@ -54,7 +49,6 @@ export default function TestCaseTable({ projectId, cases }) {
column: "id",
direction: "ascending",
});
const headerColumns = columns;
const sortedItems = useMemo(() => {
return [...cases].sort((a: Case, b: Case) => {