feat: show circular progress while runs load

This commit is contained in:
amhsirak
2025-01-17 22:50:44 +05:30
parent b756af0ea1
commit 88ed7717dc

View File

@@ -160,6 +160,11 @@ export const RunsTable: React.FC<RunsTableProps> = ({
sx={{ width: '250px' }}
/>
</Box>
{rows.length === 0 ? (
<Box display="flex" justifyContent="center" alignItems="center" height="100%">
<CircularProgress />
</Box>
) : (
<TableContainer component={Paper} sx={{ width: '100%', overflow: 'hidden' }}>
{Object.entries(groupedRows).map(([id, data]) => (
<Accordion key={id} onChange={(event, isExpanded) => handleAccordionChange(id, isExpanded)}>
@@ -202,6 +207,7 @@ export const RunsTable: React.FC<RunsTableProps> = ({
</Accordion>
))}
</TableContainer>
)}
<TablePagination
rowsPerPageOptions={[10, 25, 50]}
component="div"