feat: add robots table ui message
This commit is contained in:
@@ -513,42 +513,69 @@ export const RecordingsTable = ({
|
|||||||
</IconButton>
|
</IconButton>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
<TableContainer component={Paper} sx={{ width: '100%', overflow: 'hidden', marginTop: '15px' }}>
|
|
||||||
<Table stickyHeader aria-label="sticky table">
|
|
||||||
<TableHead>
|
|
||||||
<TableRow>
|
|
||||||
{columns.map((column) => (
|
|
||||||
<MemoizedTableCell
|
|
||||||
key={column.id}
|
|
||||||
style={{ minWidth: column.minWidth }}
|
|
||||||
>
|
|
||||||
{column.label}
|
|
||||||
</MemoizedTableCell>
|
|
||||||
))}
|
|
||||||
</TableRow>
|
|
||||||
</TableHead>
|
|
||||||
<TableBody>
|
|
||||||
{visibleRows.map((row) => (
|
|
||||||
<TableRowMemoized
|
|
||||||
key={row.id}
|
|
||||||
row={row}
|
|
||||||
columns={columns}
|
|
||||||
handlers={handlers}
|
|
||||||
/>
|
|
||||||
))}
|
|
||||||
</TableBody>
|
|
||||||
</Table>
|
|
||||||
</TableContainer>
|
|
||||||
|
|
||||||
<TablePagination
|
{filteredRows.length === 0 ? (
|
||||||
rowsPerPageOptions={[10, 25, 50, 100]}
|
<Box
|
||||||
component="div"
|
display="flex"
|
||||||
count={filteredRows.length}
|
flexDirection="column"
|
||||||
rowsPerPage={rowsPerPage}
|
alignItems="center"
|
||||||
page={page}
|
justifyContent="center"
|
||||||
onPageChange={handleChangePage}
|
sx={{
|
||||||
onRowsPerPageChange={handleChangeRowsPerPage}
|
minHeight: 300,
|
||||||
/>
|
textAlign: 'center',
|
||||||
|
color: 'text.secondary'
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Typography variant="h6" gutterBottom>
|
||||||
|
{debouncedSearchTerm ? t('recordingtable.placeholder.search') : t('recordingtable.placeholder.title')}
|
||||||
|
</Typography>
|
||||||
|
<Typography variant="body2" color="text.secondary">
|
||||||
|
{debouncedSearchTerm
|
||||||
|
? t('recordingtable.search_criteria')
|
||||||
|
: t('recordingtable.placeholder.body')
|
||||||
|
}
|
||||||
|
</Typography>
|
||||||
|
</Box>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<TableContainer component={Paper} sx={{ width: '100%', overflow: 'hidden', marginTop: '15px' }}>
|
||||||
|
<Table stickyHeader aria-label="sticky table">
|
||||||
|
<TableHead>
|
||||||
|
<TableRow>
|
||||||
|
{columns.map((column) => (
|
||||||
|
<MemoizedTableCell
|
||||||
|
key={column.id}
|
||||||
|
style={{ minWidth: column.minWidth }}
|
||||||
|
>
|
||||||
|
{column.label}
|
||||||
|
</MemoizedTableCell>
|
||||||
|
))}
|
||||||
|
</TableRow>
|
||||||
|
</TableHead>
|
||||||
|
<TableBody>
|
||||||
|
{visibleRows.map((row) => (
|
||||||
|
<TableRowMemoized
|
||||||
|
key={row.id}
|
||||||
|
row={row}
|
||||||
|
columns={columns}
|
||||||
|
handlers={handlers}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</TableBody>
|
||||||
|
</Table>
|
||||||
|
</TableContainer>
|
||||||
|
|
||||||
|
<TablePagination
|
||||||
|
rowsPerPageOptions={[10, 25, 50, 100]}
|
||||||
|
component="div"
|
||||||
|
count={filteredRows.length}
|
||||||
|
rowsPerPage={rowsPerPage}
|
||||||
|
page={page}
|
||||||
|
onPageChange={handleChangePage}
|
||||||
|
onRowsPerPageChange={handleChangeRowsPerPage}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<GenericModal isOpen={isWarningModalOpen} onClose={() => setWarningModalOpen(false)} modalStyle={modalStyle}>
|
<GenericModal isOpen={isWarningModalOpen} onClose={() => setWarningModalOpen(false)} modalStyle={modalStyle}>
|
||||||
<div style={{ padding: '10px' }}>
|
<div style={{ padding: '10px' }}>
|
||||||
<Typography variant="h6" gutterBottom>{t('recordingtable.warning_modal.title')}</Typography>
|
<Typography variant="h6" gutterBottom>{t('recordingtable.warning_modal.title')}</Typography>
|
||||||
|
|||||||
Reference in New Issue
Block a user