generated from Luis/nextjs-python-web-template
some final fixes before the demo
This commit is contained in:
@@ -9,9 +9,14 @@ import Paper from "@mui/material/Paper";
|
||||
import { NoDataOverlay } from "@/components/noDataOverlay";
|
||||
import { StyledTableCell, StyledTableRow } from "./style";
|
||||
import { ICustomTable, CustomTableConfiguration } from "@/types";
|
||||
import { Checkbox } from "@mui/material";
|
||||
import { Checkbox, Skeleton } from "@mui/material";
|
||||
|
||||
const CustomTable = ({ configuration, data, loading }: ICustomTable) => {
|
||||
|
||||
|
||||
if (loading)
|
||||
return <Skeleton variant="rectangular" animation="wave" height={200} />
|
||||
|
||||
const CustomTable = ({ configuration, data }: ICustomTable) => {
|
||||
// display empty icon in case there is no data
|
||||
if (!data || data.length === 0)
|
||||
return <NoDataOverlay label="No Activity yet" />;
|
||||
|
||||
Reference in New Issue
Block a user