fix getNodeStats error

This commit is contained in:
Olivier Gagnon
2021-09-25 13:03:09 -04:00
parent 7fb2b8b590
commit f7aa393a8f
12 changed files with 165 additions and 134 deletions
+3 -6
View File
@@ -6,6 +6,7 @@
import React from "react";
import { PurchaseMultipliers } from "../data/Constants";
import Button from "@mui/material/Button";
interface IMultiplierProps {
className: string;
@@ -15,11 +16,7 @@ interface IMultiplierProps {
}
function MultiplierButton(props: IMultiplierProps): React.ReactElement {
return (
<button className={props.className} onClick={props.onClick}>
{props.text}
</button>
);
return <Button onClick={props.onClick}>{props.text}</Button>;
}
interface IProps {
@@ -47,5 +44,5 @@ export function MultiplierButtons(props: IProps): React.ReactElement {
buttons.push(<MultiplierButton {...btnProps} />);
}
return <span id={"hacknet-nodes-multipliers"}>{buttons}</span>;
return <>{buttons}</>;
}