From fbb3b7f05737f9571b04b0a8f4f15c0928de8545 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 7 Jul 2025 01:43:36 +0000
Subject: (대표님) 변경사항 20250707 10시 43분
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/BidProjectSelector.tsx | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'components/BidProjectSelector.tsx')

diff --git a/components/BidProjectSelector.tsx b/components/BidProjectSelector.tsx
index 8e229b10..5cbcfee6 100644
--- a/components/BidProjectSelector.tsx
+++ b/components/BidProjectSelector.tsx
@@ -6,18 +6,20 @@ import { Button } from "@/components/ui/button"
 import { Popover, PopoverTrigger, PopoverContent } from "@/components/ui/popover"
 import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from "@/components/ui/command"
 import { cn } from "@/lib/utils"
-import { getBidProjects,  type Project } from "@/lib/rfqs/service"
+import { getBidProjects,  type Project } from "@/lib/techsales-rfq/service"
 
 interface ProjectSelectorProps {
   selectedProjectId?: number | null;
   onProjectSelect: (project: Project) => void;
   placeholder?: string;
+  pjtType?: 'SHIP' | 'TOP' | 'HULL';
 }
 
 export function EstimateProjectSelector ({ 
   selectedProjectId, 
   onProjectSelect, 
-  placeholder = "프로젝트 선택..." 
+  placeholder = "프로젝트 선택...",
+  pjtType 
 }: ProjectSelectorProps) {
   const [open, setOpen] = React.useState(false)
   const [searchTerm, setSearchTerm] = React.useState("")
@@ -30,7 +32,7 @@ export function EstimateProjectSelector ({
     async function loadAllProjects() {
       setIsLoading(true);
       try {
-        const allProjects = await getBidProjects();
+        const allProjects = await getBidProjects(pjtType);
         setProjects(allProjects);
         
         // 초기 선택된 프로젝트가 있으면 설정
@@ -48,7 +50,7 @@ export function EstimateProjectSelector ({
     }
     
     loadAllProjects();
-  }, [selectedProjectId]);
+  }, [selectedProjectId, pjtType]);
 
   // 클라이언트 측에서 검색어로 필터링
   const filteredProjects = React.useMemo(() => {
-- 
cgit v1.2.3

