Merge branch 'rc' into workspaces

This commit is contained in:
Sidney Alcantara
2022-07-20 15:08:54 +10:00

View File

@@ -5,17 +5,19 @@ import { useTheme } from "@mui/material";
export default function Percentage({ value }: IBasicCellProps) {
const theme = useTheme();
if (value === null || value === undefined) return null;
const percentage = typeof value === "number" ? value : 0;
return (
<div
style={{
textAlign: "right",
color: theme.palette.text.primary,
position: "relative",
zIndex: 1,
}}
>
{Math.round(percentage * 100)}%
</div>
<div
style={{
textAlign: "right",
color: theme.palette.text.primary,
position: "relative",
zIndex: 1,
}}
>
{Math.round(percentage * 100)}%
</div>
);
}