the only .length passed into the responsive table is in transaction, adding concole log to see if transactions is undefined for some reason
This commit is contained in:
parent
538da5c4bb
commit
0837b4fc7b
3 changed files with 8 additions and 7 deletions
|
|
@ -349,7 +349,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
|||
</Card>
|
||||
)
|
||||
})}
|
||||
{rows.length < 1 &&
|
||||
{/* {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.length < 1 && !isLoading &&
|
||||
{/* {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 &&
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ export default function GroupDrawer(props: Props) {
|
|||
onRowClick={toDevice}
|
||||
handleRowsPerPageChange={()=>{}}
|
||||
setPage={()=>{}}
|
||||
total={grpDevs.length}
|
||||
total={0}
|
||||
rows={grpDevs}
|
||||
renderMobile={mobile}
|
||||
renderGutter={gutter}
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ export default function TransactionViewer(props: Props) {
|
|||
};
|
||||
|
||||
const myTable = () => {
|
||||
console.log(transactions)
|
||||
return (
|
||||
<ResponsiveTable<Transaction>
|
||||
isLoading={loading}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue