trying to narrow it down starting with commenting out the entire table

This commit is contained in:
csawatzky 2025-04-10 13:04:02 -06:00
parent 2a8694ab91
commit 9221318d17

View file

@ -349,7 +349,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
</Card>
)
})}
{/* {(rows && rows.length < 1) &&
{(rows && rows.length < 1) &&
(!isLoading ?
<Typography sx={{ textAlign: "center" }} color="textSecondary">
{ noDataMessage ? noDataMessage : "No data."}
@ -359,7 +359,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
<CircularProgress/>
</Box>
)
} */}
}
</Box>
)
@ -376,9 +376,9 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
return (
<TableContainer className={classes.tableContainer} component={Paper}>
<Table>
{/* <Table>
<TableHead>
{/* table actions */}
<TableRow sx={ !title && !setSearchText ? { display: "none" } : undefined}>
<TableCell colSpan={10000} sx={{ border: "none" }}>
<Grid2 container justifyContent="space-between">
@ -410,7 +410,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
</Grid2>
</TableCell>
</TableRow>
{/* custom element */}
{customElement &&
<TableRow>
<TableCell colSpan={10000} sx={{ border: "none" }}>
@ -419,11 +419,11 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
</TableRow>
}
{/* column headers */}
<TableRow sx={ hideKeys ? { display: "none" } : undefined } >
{ rowSelect && <TableCell></TableCell> }
{ renderGutter && <TableCell></TableCell>}
{/* { columns ?
{ columns ?
columns.map((column, index) => {
if (filterList.includes(column.title) || column.hidden) return null
return (
@ -440,7 +440,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
</TableCell>
)
})
} */}
}
</TableRow>
</TableHead>
<TableBody>
@ -518,7 +518,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
)
})
}
{/* {(rows && rows.length)< 1 && !isLoading &&
{(rows && rows.length)< 1 && !isLoading &&
<TableRow>
<TableCell colSpan={6} sx={{textAlign: "center" }}>
<Typography variant="body2" color="textSecondary">
@ -526,9 +526,9 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
</Typography>
</TableCell>
</TableRow>
} */}
}
</TableBody>
</Table>
</Table> */}
{!hidePagination &&
<TablePagination
rowsPerPageOptions={rowsPerPageOptions ? rowsPerPageOptions : [5, 10, 20]}