From 2ef02e27dbe639876fa3b90c30307dda183545ec Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Thu, 17 Jul 2025 10:50:52 +0000
Subject: (최겸) 기술영업 변경사항 적용
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../contacts-table/add-contact-dialog.tsx           | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

(limited to 'lib/tech-vendors/contacts-table/add-contact-dialog.tsx')

diff --git a/lib/tech-vendors/contacts-table/add-contact-dialog.tsx b/lib/tech-vendors/contacts-table/add-contact-dialog.tsx
index 05e5092e..ff845e20 100644
--- a/lib/tech-vendors/contacts-table/add-contact-dialog.tsx
+++ b/lib/tech-vendors/contacts-table/add-contact-dialog.tsx
@@ -39,6 +39,7 @@ export function AddContactDialog({ vendorId }: AddContactDialogProps) {
       contactPosition: "",
       contactEmail: "",
       contactPhone: "",
+      country: "",
       isPrimary: false,
     },
   })
@@ -50,6 +51,12 @@ export function AddContactDialog({ vendorId }: AddContactDialogProps) {
       alert(`에러: ${result.error}`)
       return
     }
+    
+    // 성공 시 메시지 표시
+    if (result.data?.message) {
+      alert(result.data.message)
+    }
+    
     // 성공 시 모달 닫고 폼 리셋
     form.reset()
     setOpen(false)
@@ -139,6 +146,20 @@ export function AddContactDialog({ vendorId }: AddContactDialogProps) {
                 )}
               />
 
+              <FormField
+                control={form.control}
+                name="country"
+                render={({ field }) => (
+                  <FormItem>
+                    <FormLabel>Country</FormLabel>
+                    <FormControl>
+                      <Input placeholder="예: Korea" {...field} />
+                    </FormControl>
+                    <FormMessage />
+                  </FormItem>
+                )}
+              />
+
               {/* 단순 checkbox */}
               <FormField
                 control={form.control}
-- 
cgit v1.2.3

