@@ -69,7 +69,7 @@ const RequestList: FC = () => {
|
|||||||
const line = item.items[0]
|
const line = item.items[0]
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{line.product?.title ?? '—'} ({line.quantity.toLocaleString('fa-IR')})
|
{line.product?.title ?? '—'}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -77,7 +77,7 @@ const RequestList: FC = () => {
|
|||||||
<div className='flex flex-col gap-0.5'>
|
<div className='flex flex-col gap-0.5'>
|
||||||
{item.items.map((line) => (
|
{item.items.map((line) => (
|
||||||
<span key={line.id}>
|
<span key={line.id}>
|
||||||
{line.product?.title ?? '—'} ({line.quantity.toLocaleString('fa-IR')})
|
{line.product?.title ?? '—'}
|
||||||
</span>
|
</span>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -61,10 +61,6 @@ const RequestItem: FC<Props> = ({ item }) => {
|
|||||||
<div className="text-xs text-desc">عنوان:</div>
|
<div className="text-xs text-desc">عنوان:</div>
|
||||||
<div className="text-sm font-medium text-black">{item.product?.title}</div>
|
<div className="text-sm font-medium text-black">{item.product?.title}</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='flex items-center gap-2'>
|
|
||||||
<div className="text-xs text-desc">تعداد:</div>
|
|
||||||
<div className="text-sm font-medium text-black">{item.quantity}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ export type RequestItemType = {
|
|||||||
product: ProductType;
|
product: ProductType;
|
||||||
attributes: RequestItemAttributeType[];
|
attributes: RequestItemAttributeType[];
|
||||||
request: string;
|
request: string;
|
||||||
quantity: number;
|
|
||||||
description: string;
|
description: string;
|
||||||
attachments: string[];
|
attachments: string[];
|
||||||
};
|
};
|
||||||
@@ -72,7 +71,6 @@ export type RequestDetailItemType = {
|
|||||||
product: RequestDetailProductType;
|
product: RequestDetailProductType;
|
||||||
attributes: RequestItemAttributeType[];
|
attributes: RequestItemAttributeType[];
|
||||||
request: string;
|
request: string;
|
||||||
quantity: number;
|
|
||||||
description: string;
|
description: string;
|
||||||
attachments: string[] | unknown[];
|
attachments: string[] | unknown[];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user