summaryrefslogtreecommitdiff
path: root/components/additional-info/join-form.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/additional-info/join-form.tsx')
-rw-r--r--components/additional-info/join-form.tsx40
1 files changed, 39 insertions, 1 deletions
diff --git a/components/additional-info/join-form.tsx b/components/additional-info/join-form.tsx
index d9f5052e..ca0c60d5 100644
--- a/components/additional-info/join-form.tsx
+++ b/components/additional-info/join-form.tsx
@@ -192,6 +192,8 @@ export function InfoForm() {
vendorName: "",
taxId: "",
address: "",
+ addressDetail: "",
+ postalCode: "",
email: "",
phone: "",
country: "",
@@ -286,6 +288,8 @@ export function InfoForm() {
vendorName: vendorData.vendorName || "",
taxId: vendorData.taxId || "",
address: vendorData.address || "",
+ addressDetail: vendorData.addressDetail || "",
+ postalCode: vendorData.postalCode || "",
email: vendorData.email || "",
phone: vendorData.phone || "",
country: vendorData.country || "",
@@ -639,6 +643,8 @@ export function InfoForm() {
vendorName: values.vendorName,
website: values.website,
address: values.address,
+ addressDetail: values.addressDetail,
+ postalCode: values.postalCode,
email: values.email,
phone: values.phone,
country: values.country,
@@ -1105,7 +1111,9 @@ export function InfoForm() {
name="address"
render={({ field }) => (
<FormItem>
- <FormLabel>주소</FormLabel>
+ <FormLabel className="after:content-['*'] after:ml-0.5 after:text-red-500">
+ 주소
+ </FormLabel>
<FormControl>
<Input {...field} disabled={isSubmitting} />
</FormControl>
@@ -1114,6 +1122,36 @@ export function InfoForm() {
)}
/>
+ {/* Address Detail */}
+ <FormField
+ control={form.control}
+ name="addressDetail"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>상세주소</FormLabel>
+ <FormControl>
+ <Input {...field} disabled={isSubmitting} placeholder="상세주소를 입력해주세요" />
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+
+ {/* Postal Code */}
+ <FormField
+ control={form.control}
+ name="postalCode"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>우편번호</FormLabel>
+ <FormControl>
+ <Input {...field} disabled={isSubmitting} placeholder="우편번호를 입력해주세요" />
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+
<FormField
control={form.control}
name="phone"