diff options
| author | joonhoekim <26rote@gmail.com> | 2025-11-02 17:17:56 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-11-02 17:17:56 +0900 |
| commit | 397050fffb14cf2f88ad7610fbbce96cf0cb797c (patch) | |
| tree | bd5d5d1ff849ba2057104c44f58f0e16eb27d19a /lib/po/vendor-table/shi-vendor-po-columns.tsx | |
| parent | 280f9736c9db3a95436d99aee238725c8d5fe24f (diff) | |
(김준회) po: 서명요청 버튼 및 관련 코드 제거
Diffstat (limited to 'lib/po/vendor-table/shi-vendor-po-columns.tsx')
| -rw-r--r-- | lib/po/vendor-table/shi-vendor-po-columns.tsx | 39 |
1 files changed, 5 insertions, 34 deletions
diff --git a/lib/po/vendor-table/shi-vendor-po-columns.tsx b/lib/po/vendor-table/shi-vendor-po-columns.tsx index 356b3dab..2aa7996b 100644 --- a/lib/po/vendor-table/shi-vendor-po-columns.tsx +++ b/lib/po/vendor-table/shi-vendor-po-columns.tsx @@ -2,10 +2,8 @@ import * as React from "react" import { type ColumnDef } from "@tanstack/react-table" -import { - SendIcon, +import { FileTextIcon, - MoreHorizontalIcon, EyeIcon, } from "lucide-react" import { useRouter, useParams } from "next/navigation" @@ -14,14 +12,6 @@ import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Checkbox } from "@/components/ui/checkbox" import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuLabel, - DropdownMenuSeparator, - DropdownMenuTrigger, -} from "@/components/ui/dropdown-menu" -import { Tooltip, TooltipContent, TooltipProvider, @@ -31,10 +21,10 @@ import { DataTableColumnHeaderSimple } from "@/components/data-table/data-table- import { VendorPO } from "./types" -// 서명 요청 전용 액션 타입 -type ShiVendorPORowAction = { +// 액션 타입 +export type ShiVendorPORowAction = { row: { original: VendorPO } - type: "view-items" | "signature-request" + type: "view-items" } interface GetShiVendorColumnsProps { @@ -410,7 +400,7 @@ export function getShiVendorColumns({ const router = useRouter() // eslint-disable-next-line react-hooks/rules-of-hooks const params = useParams() - const lng = params.lng as string + const lng = (params?.lng as string) || 'ko' return ( <div className="flex items-center justify-center gap-2"> @@ -434,25 +424,6 @@ export function getShiVendorColumns({ </Tooltip> </TooltipProvider> - {/* 서명 요청 버튼 */} - <TooltipProvider> - <Tooltip> - <TooltipTrigger asChild> - <Button - variant="outline" - size="sm" - className="h-8 px-2 text-blue-600 border-blue-200 hover:bg-blue-50" - onClick={() => setRowAction({ row, type: "signature-request" })} - > - <SendIcon className="h-3.5 w-3.5 mr-1" aria-hidden="true" /> - 서명 요청 - </Button> - </TooltipTrigger> - <TooltipContent> - 벤더에게 전자서명 요청 - </TooltipContent> - </Tooltip> - </TooltipProvider> </div> ) }, |
