261028_02_HOT: 컨택 진행 사용 허용 필드를 단일 선택으로 변경
This commit is contained in:
@@ -6,6 +6,7 @@ import { Button } from '@/components/ui/button'
|
||||
import { Input } from '@/components/ui/input'
|
||||
import { Label } from '@/components/ui/label'
|
||||
import { KriSingleSelect } from '@/components/common/KriAutoComplete'
|
||||
import { LIST_IS_USE_LABEL } from '@/components/table-column/ListTableColumn'
|
||||
import { useDialog } from '@/hooks/useDialog'
|
||||
import { useDownloadListItemFileByHeaderMutation, useUploadListItemFileMutation } from '@/query/list'
|
||||
import { ListHeaderConst } from '@/const/listConst'
|
||||
@@ -334,6 +335,26 @@ const ListContactInfoPanel = ({
|
||||
)
|
||||
}
|
||||
|
||||
if (header.listHderTy === ListHeaderConst.IS_USE) {
|
||||
return (
|
||||
<FieldRow key={header.listHderId} label={header.listHderNm} editable={canEditField}>
|
||||
<KriSingleSelect
|
||||
items={Object.values(LIST_IS_USE_LABEL)}
|
||||
value={value}
|
||||
disabled={!editable}
|
||||
onChange={onChange}
|
||||
getValue={(item) => item}
|
||||
getLabel={(item) => item}
|
||||
searchable={false}
|
||||
preventDeselect
|
||||
widthClassName="w-full"
|
||||
heightClassName="h-9"
|
||||
className={disabledContrastClass}
|
||||
/>
|
||||
</FieldRow>
|
||||
)
|
||||
}
|
||||
|
||||
if (header.listHderTy === ListHeaderConst.CONTENT_ITEM && (header.filterContents?.length ?? 0) > 0) {
|
||||
return (
|
||||
<FieldRow key={header.listHderId} label={header.listHderNm} editable={canEditField}>
|
||||
|
||||
Reference in New Issue
Block a user