updates on the ui changes and frully removed the mui and converted into astryx and color change

This commit is contained in:
2026-08-13 18:24:04 +05:30
parent 498bb7cbc0
commit 8cd8e34b11
122 changed files with 15111 additions and 22411 deletions

View File

@@ -1,6 +1,10 @@
import React from 'react';
import { TableRow, TableCell, Skeleton } from '@mui/material';
import PropTypes from 'prop-types';
import { TableRow, TableCell } from '@astryxdesign/core/Table';
import { Skeleton } from '@astryxdesign/core/Skeleton';
// Placeholder rows for a loading table. Renders into an Astryx <TableBody>, so
// the host page's table must already be on Astryx's Table.
export default function TableLoader({ rows = 5, columns = 6, height = 40 }) {
return (
<>
@@ -8,7 +12,7 @@ export default function TableLoader({ rows = 5, columns = 6, height = 40 }) {
<TableRow key={rowIndex}>
{[...Array(columns)].map((_, colIndex) => (
<TableCell key={colIndex}>
<Skeleton variant="rectangular" height={height} width={70} animation="wave" />
<Skeleton width={70} height={height} radius={2} index={colIndex} />
</TableCell>
))}
</TableRow>
@@ -16,3 +20,9 @@ export default function TableLoader({ rows = 5, columns = 6, height = 40 }) {
</>
);
}
TableLoader.propTypes = {
rows: PropTypes.number,
columns: PropTypes.number,
height: PropTypes.number
};