trying to narrow it down starting with commenting out the entire table
This commit is contained in:
parent
2a8694ab91
commit
9221318d17
1 changed files with 11 additions and 11 deletions
|
|
@ -349,7 +349,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
||||||
</Card>
|
</Card>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
{/* {(rows && rows.length < 1) &&
|
{(rows && rows.length < 1) &&
|
||||||
(!isLoading ?
|
(!isLoading ?
|
||||||
<Typography sx={{ textAlign: "center" }} color="textSecondary">
|
<Typography sx={{ textAlign: "center" }} color="textSecondary">
|
||||||
{ noDataMessage ? noDataMessage : "No data."}
|
{ noDataMessage ? noDataMessage : "No data."}
|
||||||
|
|
@ -359,7 +359,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
||||||
<CircularProgress/>
|
<CircularProgress/>
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
} */}
|
}
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -376,9 +376,9 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TableContainer className={classes.tableContainer} component={Paper}>
|
<TableContainer className={classes.tableContainer} component={Paper}>
|
||||||
<Table>
|
{/* <Table>
|
||||||
<TableHead>
|
<TableHead>
|
||||||
{/* table actions */}
|
|
||||||
<TableRow sx={ !title && !setSearchText ? { display: "none" } : undefined}>
|
<TableRow sx={ !title && !setSearchText ? { display: "none" } : undefined}>
|
||||||
<TableCell colSpan={10000} sx={{ border: "none" }}>
|
<TableCell colSpan={10000} sx={{ border: "none" }}>
|
||||||
<Grid2 container justifyContent="space-between">
|
<Grid2 container justifyContent="space-between">
|
||||||
|
|
@ -410,7 +410,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
||||||
</Grid2>
|
</Grid2>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
{/* custom element */}
|
|
||||||
{customElement &&
|
{customElement &&
|
||||||
<TableRow>
|
<TableRow>
|
||||||
<TableCell colSpan={10000} sx={{ border: "none" }}>
|
<TableCell colSpan={10000} sx={{ border: "none" }}>
|
||||||
|
|
@ -419,11 +419,11 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
||||||
</TableRow>
|
</TableRow>
|
||||||
}
|
}
|
||||||
|
|
||||||
{/* column headers */}
|
|
||||||
<TableRow sx={ hideKeys ? { display: "none" } : undefined } >
|
<TableRow sx={ hideKeys ? { display: "none" } : undefined } >
|
||||||
{ rowSelect && <TableCell></TableCell> }
|
{ rowSelect && <TableCell></TableCell> }
|
||||||
{ renderGutter && <TableCell></TableCell>}
|
{ renderGutter && <TableCell></TableCell>}
|
||||||
{/* { columns ?
|
{ columns ?
|
||||||
columns.map((column, index) => {
|
columns.map((column, index) => {
|
||||||
if (filterList.includes(column.title) || column.hidden) return null
|
if (filterList.includes(column.title) || column.hidden) return null
|
||||||
return (
|
return (
|
||||||
|
|
@ -440,7 +440,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
||||||
</TableCell>
|
</TableCell>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
} */}
|
}
|
||||||
</TableRow>
|
</TableRow>
|
||||||
</TableHead>
|
</TableHead>
|
||||||
<TableBody>
|
<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>
|
<TableRow>
|
||||||
<TableCell colSpan={6} sx={{textAlign: "center" }}>
|
<TableCell colSpan={6} sx={{textAlign: "center" }}>
|
||||||
<Typography variant="body2" color="textSecondary">
|
<Typography variant="body2" color="textSecondary">
|
||||||
|
|
@ -526,9 +526,9 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
||||||
</Typography>
|
</Typography>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
} */}
|
}
|
||||||
</TableBody>
|
</TableBody>
|
||||||
</Table>
|
</Table> */}
|
||||||
{!hidePagination &&
|
{!hidePagination &&
|
||||||
<TablePagination
|
<TablePagination
|
||||||
rowsPerPageOptions={rowsPerPageOptions ? rowsPerPageOptions : [5, 10, 20]}
|
rowsPerPageOptions={rowsPerPageOptions ? rowsPerPageOptions : [5, 10, 20]}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue