header profile image bug fixed
This commit was merged in pull request #119.
This commit is contained in:
@@ -16,10 +16,12 @@ export default function ProductReportTable() {
|
||||
page
|
||||
}
|
||||
return getProductReports(reqData)
|
||||
}
|
||||
},
|
||||
staleTime: 0
|
||||
})
|
||||
|
||||
console.log('DATA', data?.data)
|
||||
// console.log('DATA', data?.data)
|
||||
const productReportData = data?.data?.product || []
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -60,23 +62,22 @@ export default function ProductReportTable() {
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>A000002</td>
|
||||
<td>Sun, 13 Jul 2025 15:02:57 GMT</td>
|
||||
<td>Name for - A000001</td>
|
||||
<td>7</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>A000002</td>
|
||||
<td>Sun, 13 Jul 2025 15:02:57 GMT</td>
|
||||
<td>Name for - A000001</td>
|
||||
<td>7</td>
|
||||
</tr>
|
||||
|
||||
|
||||
{productReportData.length > 0 ? productReportData.map((item, index) => {
|
||||
return (
|
||||
<tr key={index}>
|
||||
<td>{item?.product_id}</td>
|
||||
<td>{item?.added}</td>
|
||||
<td>{item?.product_name}</td>
|
||||
<td>{item?.status}</td>
|
||||
</tr>
|
||||
)
|
||||
})
|
||||
:
|
||||
<tr>
|
||||
<td colSpan={4} className='text-center'>No data found</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user