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
+18 -13
View File
@@ -17,9 +17,11 @@ export default function SystemReportTable() {
}
return getSystemReports(reqData)
},
staleTime: 0
})
console.log('DATA', data?.data)
// console.log('DATA', data?.data)
const systemReportData = data?.data?.system || []
return (
<>
@@ -60,18 +62,21 @@ export default function SystemReportTable() {
</tr>
</thead>
<tbody>
<tr>
<td>Sun, 15 Feb 2026 10:52:01 GMT</td>
<td>Systems Status Checks</td>
<td>processing</td>
<td>Sun, 15 Feb 2026 09:26:02 GMT</td>
</tr>
<tr>
<td>Sun, 15 Feb 2026 10:52:01 GMT</td>
<td>Systems Status Checks</td>
<td>processing</td>
<td>Sun, 15 Feb 2026 09:26:02 GMT</td>
</tr>
{systemReportData.length > 0 ? systemReportData.map((item, index) => {
return (
<tr key={index}>
<td>{item?.added}</td>
<td>{item?.action_name}</td>
<td>{item?.status_description}</td>
<td>{item?.updated}</td>
</tr>
)
})
:
<tr>
<td colSpan={4} className='text-center'>No data found</td>
</tr>
}
</tbody>
</table>
</div>