diff options
Diffstat (limited to 'modern/src/common/components/TableShimmer.jsx')
-rw-r--r-- | modern/src/common/components/TableShimmer.jsx | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/modern/src/common/components/TableShimmer.jsx b/modern/src/common/components/TableShimmer.jsx deleted file mode 100644 index 08a984a4..00000000 --- a/modern/src/common/components/TableShimmer.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import { Skeleton, TableCell, TableRow } from '@mui/material'; - -const TableShimmer = ({ columns, startAction, endAction }) => [...Array(3)].map((_, i) => ( - <TableRow key={-i}> - {[...Array(columns)].map((_, j) => { - const action = (startAction && j === 0) || (endAction && j === columns - 1); - return ( - <TableCell key={-j} padding={action ? 'none' : 'normal'}> - {!action && <Skeleton />} - </TableCell> - ); - })} - </TableRow> -)); - -export default TableShimmer; |