Files
Checkmate/Client/src/Pages/Uptime/Home/UptimeTable/Skeleton/index.jsx
T

32 lines
655 B
React
Raw Normal View History

import { Skeleton, TableCell, TableRow } from "@mui/material";
2024-10-18 14:49:48 -04:00
const ROWS_NUMBER = 7;
const ROWS_ARRAY = Array.from({ length: ROWS_NUMBER }, (_, i) => i);
const TableBodySkeleton = () => {
/* TODO Skeleton does not follow light and dark theme */
2024-10-18 14:49:48 -04:00
return (
<>
2024-10-18 14:49:48 -04:00
{ROWS_ARRAY.map((row) => (
<TableRow key={row}>
<TableCell>
<Skeleton />
</TableCell>
<TableCell>
<Skeleton />
</TableCell>
<TableCell>
<Skeleton />
</TableCell>
<TableCell>
<Skeleton />
</TableCell>
<TableCell>
<Skeleton />
</TableCell>
</TableRow>
))}
</>
2024-10-18 14:49:48 -04:00
);
};
export { TableBodySkeleton };