up
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-06-26 15:45:29 +03:30
parent b7c9a4bc03
commit 59ec5b54c7
4 changed files with 44 additions and 17 deletions
+8
View File
@@ -119,6 +119,14 @@ const OrdersList: FC = () => {
{
key: 'designer',
title: 'مجری / طراح',
render: (item) => {
const designer = item.designer
if (!designer || typeof designer === 'string') {
return <div>{typeof designer === 'string' ? designer : '—'}</div>
}
const name = `${designer.firstName ?? ''} ${designer.lastName ?? ''}`.trim()
return <div>{name || designer.phone || '—'}</div>
},
},
{
key: 'status',
+1 -1
View File
@@ -84,7 +84,7 @@ export interface OrderListItemType extends RowDataType {
title: string;
type: string;
user: UserType;
designer: string | null;
designer: OrderDetailCreatorType | string | null;
creator: string;
orderNumber: number;
status: string;
@@ -9,21 +9,27 @@ type Props = {
} & SelectHTMLAttributes<HTMLSelectElement>
const CategoriesSelect: FC<Props> = (props) => {
const CategoriesSelect: FC<Props> = ({
isDisableShowLable,
placeholder,
error_text,
...selectProps
}) => {
const { data: categories } = useGetCategory()
return (
<Select
label={props.isDisableShowLable ? undefined : 'دسته'}
placeholder={props.placeholder || 'انتخاب'}
label={isDisableShowLable ? undefined : 'دسته'}
placeholder={placeholder || 'انتخاب'}
error_text={error_text}
items={categories?.data?.map((item) => {
return {
label: item.title,
value: item.id + ''
}
}) || []}
{...props}
{...selectProps}
/>
)
}