@@ -2,11 +2,11 @@ import { type FC } from 'react'
|
||||
import Button from '@/components/Button'
|
||||
import { Edit, ShoppingCart, TickSquare, Trash } from 'iconsax-react'
|
||||
import { useGetProducts } from '../hooks/useRequestData'
|
||||
import type { RequestType } from '../type/Types'
|
||||
import type { RequestItemType } from '../type/Types'
|
||||
import { clx } from '@/helpers/utils'
|
||||
|
||||
type Props = {
|
||||
items: RequestType[]
|
||||
items: RequestItemType[]
|
||||
editingIndex: number | null
|
||||
onEdit: (index: number) => void
|
||||
onRemove: (index: number) => void
|
||||
@@ -58,11 +58,6 @@ const RequestItemsList: FC<Props> = ({
|
||||
<div className='text-sm font-medium truncate'>
|
||||
{getProductTitle(item.productId)}
|
||||
</div>
|
||||
{item.attachments.length > 0 && (
|
||||
<div className='text-description text-xs mt-1'>
|
||||
{item.attachments.length} پیوست
|
||||
</div>
|
||||
)}
|
||||
<div className='flex gap-2 mt-3'>
|
||||
<button
|
||||
type='button'
|
||||
|
||||
Reference in New Issue
Block a user