From beb00412c10b3395794cb6bf28124f368871fbd8 Mon Sep 17 00:00:00 2001 From: YangJinSoo94 Date: Tue, 27 May 2025 18:03:39 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9B=84=EB=B3=B4=EC=A7=80=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=EC=B9=B8=20=EB=B3=84=EB=8F=84=EC=9D=98=20=ED=8F=BC?= =?UTF-8?q?=EC=98=81=EC=97=AD=20=EC=83=9D=EC=84=B1=EC=99=84=EB=A3=8C,=20?= =?UTF-8?q?=EB=9D=BC=EB=B2=A8=20=EB=B3=80=EC=88=98=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business_components/src/ui/form_ui/index.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/common/business_components/src/ui/form_ui/index.tsx b/packages/common/business_components/src/ui/form_ui/index.tsx index 1ad3afa05..ec1854636 100644 --- a/packages/common/business_components/src/ui/form_ui/index.tsx +++ b/packages/common/business_components/src/ui/form_ui/index.tsx @@ -1,6 +1,9 @@ import React, { useCallback, useState } from "react"; import { FormControl, FormItem, FormLabel, FormMessage } from "../form"; -import { Checkbox } from "@common/components/ui"; +import { Button, Checkbox } from "@common/components/ui"; + +export const BZNM_TOT_NO = '총사업자등록번호'; +export const CANDIDATE = '공급처 후보지 선택(필수아님)'; interface FormUiProps extends React.HTMLAttributes { label?: string; @@ -20,11 +23,11 @@ const FormUi = React.forwardRef( setIsChecked(checked); onCheckboxChange?.(checked); }, [onCheckboxChange]); - + console.log(children); return ( {label && {label}} - {label === '종사업자등록번호' && ( + {label === BZNM_TOT_NO && (
(
)} + {label === CANDIDATE && ( + + {children} + + )} + {label !== BZNM_TOT_NO && label !== CANDIDATE && ( {React.isValidElement(children) && isDisabled ? React.cloneElement(children, { @@ -44,6 +53,7 @@ const FormUi = React.forwardRef( }) : children} + )}
);