This commit is contained in:
hamid zarghami
2026-02-24 11:29:59 +03:30
parent a3c06964e2
commit df4a730091
2 changed files with 92 additions and 16 deletions
+12 -15
View File
@@ -54,23 +54,20 @@ const RequestDetail: FC = () => {
</p>
</div>
{/* Attributes */}
{/* {fields?.data?.length ? (
{/* Attributes from field */}
{item.attributes?.length ? (
<>
<div className='font-bold mb-5 mt-7'>ویژگی ها</div>
{
fields.data.map((field) => {
const value = item.attributes?.find((o) => String(o.attributeId) === String(field.id))
return (
<div className='flex gap-3 items-center mt-3' key={field.id}>
<div className='text-sm text-gray-500'>{field.name}:</div>
<div className='text-sm -mt-px'>{value?.value || '-'}</div>
</div>
)
})
}
<div className='font-bold mb-5 mt-7'>ویژگیها</div>
<div className='flex flex-col gap-3'>
{item.attributes.map((attr) => (
<div className='flex gap-3 items-center' key={attr.fieldId}>
<div className='text-sm text-gray-500'>{attr.field?.name}:</div>
<div className='text-sm -mt-px'>{attr.value ?? '—'}</div>
</div>
))}
</div>
</>
) : null} */}
) : null}
{/* Attachments */}
{item.attachments?.length ? (