This commit is contained in:
@@ -6,13 +6,14 @@ type Props = {
|
||||
error_text?: string,
|
||||
isDisableShowLable?: boolean,
|
||||
placeholder?: string,
|
||||
|
||||
clearable?: boolean,
|
||||
} & SelectHTMLAttributes<HTMLSelectElement>
|
||||
|
||||
const CategoriesSelect: FC<Props> = ({
|
||||
isDisableShowLable,
|
||||
placeholder,
|
||||
error_text,
|
||||
clearable = true,
|
||||
...selectProps
|
||||
}) => {
|
||||
|
||||
@@ -23,6 +24,7 @@ const CategoriesSelect: FC<Props> = ({
|
||||
label={isDisableShowLable ? undefined : 'دسته'}
|
||||
placeholder={placeholder || 'انتخاب'}
|
||||
error_text={error_text}
|
||||
clearable={clearable}
|
||||
items={categories?.data?.map((item) => {
|
||||
return {
|
||||
label: item.title,
|
||||
|
||||
Reference in New Issue
Block a user