commenitng out the references to length
This commit is contained in:
parent
8cf97f70a6
commit
2a8694ab91
1 changed files with 6 additions and 6 deletions
|
|
@ -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>
|
||||
)
|
||||
|
||||
|
|
@ -423,7 +423,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
|||
<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,7 +526,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
|||
</Typography>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
}
|
||||
} */}
|
||||
</TableBody>
|
||||
</Table>
|
||||
{!hidePagination &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue