header profile image bug fixed

This commit was merged in pull request #119.
This commit is contained in:
victorAnumudu
2026-02-16 11:32:16 +01:00
parent 7628a561f8
commit a11f5100ba
6 changed files with 84 additions and 58 deletions
+19 -18
View File
@@ -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>