fix any in StatsTable

This commit is contained in:
Olivier Gagnon 2022-07-18 02:57:11 -04:00
parent 97c5332a59
commit aacdde8082

@ -7,7 +7,7 @@ import TableRow from "@mui/material/TableRow";
import Typography from "@mui/material/Typography";
interface IProps {
rows: any[][];
rows: React.ReactNode[][];
title?: string;
wide?: boolean;
}
@ -19,9 +19,9 @@ export function StatsTable({ rows, title, wide }: IProps): React.ReactElement {
{title && <Typography>{title}</Typography>}
<T size="small" padding="none">
<TableBody>
{rows.map((row: any[], i: number) => (
{rows.map((row: React.ReactNode[], i: number) => (
<TableRow key={i}>
{row.map((elem: any, i: number) => (
{row.map((elem: React.ReactNode, i: number) => (
<TableCell key={i} align={i !== 0 ? "right" : "left"}>
<Typography noWrap>{elem}</Typography>
</TableCell>