mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-04 14:47:53 +02:00
fix getNodeStats error
This commit is contained in:
@@ -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}</>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user