From 688d9884ca98b50d04ac78fc1f6e28e034a519c0 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Wed, 3 Sep 2025 12:44:32 +0000
Subject: (대표님) rfq-last 작업, vendorDocu 스키마 변경, 벤더 문서 관련 변경
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/rfq-last/table/rfq-table-toolbar-actions.tsx | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

(limited to 'lib/rfq-last/table/rfq-table-toolbar-actions.tsx')

diff --git a/lib/rfq-last/table/rfq-table-toolbar-actions.tsx b/lib/rfq-last/table/rfq-table-toolbar-actions.tsx
index 1f60da36..9b696cbd 100644
--- a/lib/rfq-last/table/rfq-table-toolbar-actions.tsx
+++ b/lib/rfq-last/table/rfq-table-toolbar-actions.tsx
@@ -13,15 +13,18 @@ import {
   DropdownMenuTrigger,
 } from "@/components/ui/dropdown-menu";
 import { RfqsLastView } from "@/db/schema";
+import { CreateGeneralRfqDialog } from "./create-general-rfq-dialog";
 
 interface RfqTableToolbarActionsProps {
   table: Table<RfqsLastView>;
   onRefresh?: () => void;
+  rfqCategory?: "general" | "itb" | "rfq";
 }
 
 export function RfqTableToolbarActions({
   table,
   onRefresh,
+  rfqCategory = "itb",
 }: RfqTableToolbarActionsProps) {
   const [isExporting, setIsExporting] = React.useState(false);
 
@@ -150,14 +153,10 @@ export function RfqTableToolbarActions({
         </DropdownMenuContent>
       </DropdownMenu>
 
-      <Button
-        variant="samsung"
-        size="sm"
-        className="h-8 px-2 lg:px-3"
-      >
-        <Plus className="mr-2 h-4 w-4" />
-        RFQ 생성
-      </Button>
+      {/* rfqCategory가 'general'일 때만 일반견적 생성 다이얼로그 표시 */}
+      {rfqCategory === "general" && (
+        <CreateGeneralRfqDialog onSuccess={onRefresh} />
+      ) }
     </div>
   );
 }
\ No newline at end of file
-- 
cgit v1.2.3

