chore: lint

This commit is contained in:
amhsirak
2025-01-17 22:51:12 +05:30
parent cb9394649a
commit 28a0c8f882

View File

@@ -165,48 +165,48 @@ export const RunsTable: React.FC<RunsTableProps> = ({
<CircularProgress /> <CircularProgress />
</Box> </Box>
) : ( ) : (
<TableContainer component={Paper} sx={{ width: '100%', overflow: 'hidden' }}> <TableContainer component={Paper} sx={{ width: '100%', overflow: 'hidden' }}>
{Object.entries(groupedRows).map(([id, data]) => ( {Object.entries(groupedRows).map(([id, data]) => (
<Accordion key={id} onChange={(event, isExpanded) => handleAccordionChange(id, isExpanded)}> <Accordion key={id} onChange={(event, isExpanded) => handleAccordionChange(id, isExpanded)}>
<AccordionSummary expandIcon={<ExpandMoreIcon />}> <AccordionSummary expandIcon={<ExpandMoreIcon />}>
<Typography variant="h6">{data[data.length - 1].name}</Typography> <Typography variant="h6">{data[data.length - 1].name}</Typography>
</AccordionSummary> </AccordionSummary>
<AccordionDetails> <AccordionDetails>
<Table stickyHeader aria-label="sticky table"> <Table stickyHeader aria-label="sticky table">
<TableHead> <TableHead>
<TableRow> <TableRow>
<TableCell /> <TableCell />
{translatedColumns.map((column) => ( {translatedColumns.map((column) => (
<TableCell <TableCell
key={column.id} key={column.id}
align={column.align} align={column.align}
style={{ minWidth: column.minWidth }} style={{ minWidth: column.minWidth }}
> >
{column.label} {column.label}
</TableCell> </TableCell>
))} ))}
</TableRow> </TableRow>
</TableHead> </TableHead>
<TableBody> <TableBody>
{data {data
.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage) .slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
.map((row) => ( .map((row) => (
<CollapsibleRow <CollapsibleRow
row={row} row={row}
handleDelete={handleDelete} handleDelete={handleDelete}
key={`row-${row.id}`} key={`row-${row.id}`}
isOpen={runId === row.runId && runningRecordingName === row.name} isOpen={runId === row.runId && runningRecordingName === row.name}
currentLog={currentInterpretationLog} currentLog={currentInterpretationLog}
abortRunHandler={abortRunHandler} abortRunHandler={abortRunHandler}
runningRecordingName={runningRecordingName} runningRecordingName={runningRecordingName}
/> />
))} ))}
</TableBody> </TableBody>
</Table> </Table>
</AccordionDetails> </AccordionDetails>
</Accordion> </Accordion>
))} ))}
</TableContainer> </TableContainer>
)} )}
<TablePagination <TablePagination
rowsPerPageOptions={[10, 25, 50]} rowsPerPageOptions={[10, 25, 50]}