diff options
| author | joonhoekim <26rote@gmail.com> | 2025-10-30 09:50:19 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-10-30 09:50:19 +0900 |
| commit | 88f13ab89d2250e52c3375b077328a933a5762ec (patch) | |
| tree | 79b884ec1bbfe4158475b70e0abcb215ceedef77 /lib | |
| parent | 2127aa708266e5e50633b66a1fe28f8e6712fbe2 (diff) | |
(김준회) SWP 로우 클릭하면 detail dialog 오픈하도록 변경 (버튼 --> 로우 전체)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/swp/table/swp-table-columns.tsx | 6 | ||||
| -rw-r--r-- | lib/swp/table/swp-table.tsx | 14 |
2 files changed, 1 insertions, 19 deletions
diff --git a/lib/swp/table/swp-table-columns.tsx b/lib/swp/table/swp-table-columns.tsx index e6abd2a0..48b2c90a 100644 --- a/lib/swp/table/swp-table-columns.tsx +++ b/lib/swp/table/swp-table-columns.tsx @@ -6,12 +6,6 @@ import type { DocumentListItem } from "@/lib/swp/document-service"; export const swpDocumentColumns: ColumnDef<DocumentListItem>[] = [ { - id: "expander", - header: () => null, - cell: () => null, - size: 50, - }, - { accessorKey: "LTST_ACTV_STAT", header: "상태", cell: ({ row }) => { diff --git a/lib/swp/table/swp-table.tsx b/lib/swp/table/swp-table.tsx index 7918c07e..21a1c775 100644 --- a/lib/swp/table/swp-table.tsx +++ b/lib/swp/table/swp-table.tsx @@ -14,8 +14,6 @@ import { TableHeader, TableRow, } from "@/components/ui/table"; -import { Button } from "@/components/ui/button"; -import { ChevronRight } from "lucide-react"; import { swpDocumentColumns } from "./swp-table-columns"; import { SwpDocumentDetailDialog } from "./swp-document-detail-dialog"; import type { DocumentListItem } from "@/lib/swp/document-service"; @@ -80,17 +78,7 @@ export function SwpTable({ > {row.getVisibleCells().map((cell) => ( <TableCell key={cell.id}> - {cell.column.id === "expander" ? ( - <Button - variant="ghost" - size="sm" - className="h-8 w-8 p-0" - > - <ChevronRight className="h-4 w-4" /> - </Button> - ) : ( - flexRender(cell.column.columnDef.cell, cell.getContext()) - )} + {flexRender(cell.column.columnDef.cell, cell.getContext())} </TableCell> ))} </TableRow> |
