diff --git a/src/qqq/components/widgets/tables/DataTable.tsx b/src/qqq/components/widgets/tables/DataTable.tsx index bdf2691..c4ed353 100644 --- a/src/qqq/components/widgets/tables/DataTable.tsx +++ b/src/qqq/components/widgets/tables/DataTable.tsx @@ -331,14 +331,13 @@ function DataTable({ { cell.column.type === "default" && ( cell.value && "number" === typeof cell.value ? ( - {cell.value.toLocaleString()} - ) : ({cell.render("Cell")}) + {cell.value.toLocaleString()} + ) : ({cell.render("Cell")}) ) } { cell.column.type === "htmlAndTooltip" && ( - - + {parse(cell.value)} @@ -349,7 +348,7 @@ function DataTable({ } { cell.column.type === "html" && ( - {parse(cell.value)} + {parse(cell.value)} ) } { diff --git a/src/qqq/components/widgets/tables/TableCard.tsx b/src/qqq/components/widgets/tables/TableCard.tsx index 7a13aea..ad83722 100644 --- a/src/qqq/components/widgets/tables/TableCard.tsx +++ b/src/qqq/components/widgets/tables/TableCard.tsx @@ -118,7 +118,7 @@ function TableCard({noRowsFoundHTML, data, rowsPerPage, hidePaginationDropdown, {Array(8).fill(0).map((_, j) => - + )} diff --git a/src/qqq/components/widgets/tables/cells/DefaultCell.tsx b/src/qqq/components/widgets/tables/cells/DefaultCell.tsx index e5355e0..2e03fc4 100644 --- a/src/qqq/components/widgets/tables/cells/DefaultCell.tsx +++ b/src/qqq/components/widgets/tables/cells/DefaultCell.tsx @@ -17,11 +17,18 @@ import {ReactNode} from "react"; import colors from "qqq/assets/theme/base/colors"; import MDTypography from "qqq/components/legacy/MDTypography"; -function DefaultCell({children}: { children: ReactNode }): JSX.Element +interface Props +{ + isFooter: boolean + children: ReactNode; +} + + +function DefaultCell({isFooter, children}: Props): JSX.Element { return (