WIP: 회원 등록 폼 작업중

This commit is contained in:
2025-06-13 09:26:25 +09:00
parent 6f92d1c2fb
commit 7bab3ef97d
11 changed files with 1019 additions and 41 deletions
+1 -5
View File
@@ -18,7 +18,6 @@ type CodeSelectProps = {
function CodeSelect({
upCd,
defaultValue,
placeholder = "선택",
className,
...props
@@ -29,13 +28,10 @@ function CodeSelect({
enabled: !!upCd,
});
const defaultValueText =
code?.find((item) => item.lwpoCd === defaultValue)?.lwpoCdNm ?? placeholder;
return (
<Select {...props}>
<SelectTrigger className={cn("w-[12rem]", className)}>
<SelectValue placeholder={defaultValueText} />
<SelectValue placeholder={placeholder} />
</SelectTrigger>
<SelectContent>
{code?.map((item) => (