diff --git a/src/Hacknet/ui/HacknetNodeElem.tsx b/src/Hacknet/ui/HacknetNodeElem.tsx index e2dd832de..523333fa9 100644 --- a/src/Hacknet/ui/HacknetNodeElem.tsx +++ b/src/Hacknet/ui/HacknetNodeElem.tsx @@ -28,6 +28,7 @@ import { TableCell } from "../../ui/React/Table"; import TableBody from "@mui/material/TableBody"; import Table from "@mui/material/Table"; import TableRow from "@mui/material/TableRow"; +import { numeralWrapper } from "../../ui/numeralFormat"; interface IProps { node: HacknetNode; @@ -163,7 +164,7 @@ export function HacknetNodeElem(props: IProps): React.ReactElement { RAM: - {node.ram}GB + {numeralWrapper.formatRAM(node.ram)} diff --git a/src/Hacknet/ui/HacknetServerElem.tsx b/src/Hacknet/ui/HacknetServerElem.tsx index 7aa7453b2..49385b916 100644 --- a/src/Hacknet/ui/HacknetServerElem.tsx +++ b/src/Hacknet/ui/HacknetServerElem.tsx @@ -31,6 +31,7 @@ import { TableCell } from "../../ui/React/Table"; import TableBody from "@mui/material/TableBody"; import Table from "@mui/material/Table"; import TableRow from "@mui/material/TableRow"; +import { numeralWrapper } from "../../ui/numeralFormat"; interface IProps { node: HacknetServer; @@ -213,7 +214,7 @@ export function HacknetServerElem(props: IProps): React.ReactElement { RAM: - {node.maxRam}GB + {numeralWrapper.formatRAM(node.maxRam)} diff --git a/src/Locations/ui/RamButton.tsx b/src/Locations/ui/RamButton.tsx index d3c093aa4..2f89f72d7 100644 --- a/src/Locations/ui/RamButton.tsx +++ b/src/Locations/ui/RamButton.tsx @@ -8,6 +8,7 @@ import { purchaseRamForHomeComputer } from "../../Server/ServerPurchases"; import { Money } from "../../ui/React/Money"; import { MathComponent } from "mathjax-react"; +import { numeralWrapper } from "../../ui/numeralFormat"; type IProps = { p: IPlayer; @@ -31,7 +32,8 @@ export function RamButton(props: IProps): React.ReactElement { }> diff --git a/src/Locations/ui/TechVendorLocation.tsx b/src/Locations/ui/TechVendorLocation.tsx index 458c66065..7ce85f4a8 100644 --- a/src/Locations/ui/TechVendorLocation.tsx +++ b/src/Locations/ui/TechVendorLocation.tsx @@ -17,6 +17,7 @@ import { getPurchaseServerCost } from "../../Server/ServerPurchases"; import { Money } from "../../ui/React/Money"; import { use } from "../../ui/Context"; import { PurchaseServerModal } from "./PurchaseServerModal"; +import { numeralWrapper } from "../../ui/numeralFormat"; interface IServerProps { ram: number; @@ -30,7 +31,7 @@ function ServerButton(props: IServerProps): React.ReactElement { return ( <>