filter orders

This commit is contained in:
hamid zarghami
2026-02-25 15:41:45 +03:30
parent e0e9ada60f
commit a631a086e1
4 changed files with 56 additions and 18 deletions
@@ -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,