filter orders
This commit is contained in:
@@ -4,6 +4,8 @@ import Select from '@/components/Select'
|
||||
|
||||
type Props = {
|
||||
error_text?: string,
|
||||
isDisableShowLable?: boolean,
|
||||
placeholder?: string,
|
||||
|
||||
} & SelectHTMLAttributes<HTMLSelectElement>
|
||||
|
||||
@@ -13,8 +15,8 @@ const CategoriesSelect: FC<Props> = (props) => {
|
||||
|
||||
return (
|
||||
<Select
|
||||
label='دسته'
|
||||
placeholder='انتخاب'
|
||||
label={props.isDisableShowLable ? undefined : 'دسته'}
|
||||
placeholder={props.placeholder || 'انتخاب'}
|
||||
items={categories?.data?.map((item) => {
|
||||
return {
|
||||
label: item.title,
|
||||
|
||||
Reference in New Issue
Block a user