Merge remote-tracking branch 'origin/staging' into origin/production

This commit is contained in:
Linksehat Staging Server
2024-02-15 14:57:44 +07:00
2 changed files with 12 additions and 20 deletions

View File

@@ -186,33 +186,26 @@ export default function DailyMonitoringList() {
</TableHead>
{/* Body Table */}
{dataTableIsLoading ?
(
{dataTableIsLoading ? (
<TableBody>
<TableRow>
<TableCell colSpan={7} align="center">Loading</TableCell>
</TableRow>
</TableBody>
)
:
(
dataTableData.data.length == 0 ?
(
<TableBody>
<TableRow>
<TableCell colSpan={7} align="center">No Data</TableCell>
</TableRow>
</TableBody>
)
:
(
<TableBody>
) : dataTableData.data.length == 0 ? (
<TableBody>
<TableRow>
<TableCell colSpan={7} align="center">No Data</TableCell>
</TableRow>
</TableBody>
) : dataTableData.data && dataTableData.data.length > 0 ? (
<TableBody>
{dataTableData.data.map((row: DailyMonitoringListType, index) => (
<DailyMonitoringListRow key={index} number={index+1} row={row} />
))}
</TableBody>
)
)}
</TableBody>
) : null}
</Table>
)
}