diff options
Diffstat (limited to 'lib/welding/table/ocr-table.tsx')
| -rw-r--r-- | lib/welding/table/ocr-table.tsx | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/welding/table/ocr-table.tsx b/lib/welding/table/ocr-table.tsx index 91af1c67..e14c53d1 100644 --- a/lib/welding/table/ocr-table.tsx +++ b/lib/welding/table/ocr-table.tsx @@ -15,6 +15,7 @@ import { OcrTableToolbarActions } from "./ocr-table-toolbar-actions" import { getColumns } from "./ocr-table-columns" import { OcrRow } from "@/db/schema" import { getOcrRows } from "../service" +import { UpdateOcrRowSheet } from "./update-ocr-row-sheet" interface ItemsTableProps { promises: Promise< @@ -74,8 +75,8 @@ export function OcrTable({ promises }: ItemsTableProps) { type: "text", // group: "Basic Info", }, - - + + { id: "identificationNo", label: "Identification No", @@ -88,19 +89,19 @@ export function OcrTable({ promises }: ItemsTableProps) { type: "text", // group: "Metadata", }, - { + { id: "jointNo", label: "Joint No", type: "text", // group: "Metadata", }, - { + { id: "weldingDate", label: "Welding Date", type: "date", // group: "Metadata", }, - { + { id: "createdAt", label: "생성일", type: "date", @@ -138,6 +139,11 @@ export function OcrTable({ promises }: ItemsTableProps) { <OcrTableToolbarActions table={table} /> </DataTableAdvancedToolbar> </DataTable> + <UpdateOcrRowSheet + open={rowAction?.type === "update"} + onOpenChange={() => setRowAction(null)} + ocrRow={rowAction?.type === "update" ? rowAction.row.original : null} + /> </> ) } |
