mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 12:45:45 +01:00
fix any in StatsTable
This commit is contained in:
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>
|
||||
|
Loading…
Reference in New Issue
Block a user