mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-20 14:42:04 +02:00
UI: Added new locale-aware and configurable number formatting (#354)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import { numeralWrapper } from "../numeralFormat";
|
||||
import { formatMoney } from "../formatNumber";
|
||||
import { Money } from "./Money";
|
||||
|
||||
export function MoneyRate({ money }: { money: number }): JSX.Element {
|
||||
return <Money money={`${numeralWrapper.formatMoney(money)} / sec`} />;
|
||||
return <Money money={`${formatMoney(money)} / sec`} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user