mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 12:27:07 +02:00
UI: Added new locale-aware and configurable number formatting (#354)
This commit is contained in:
@@ -11,7 +11,7 @@ import { Stock } from "./Stock";
|
||||
import { OrderTypes } from "./data/OrderTypes";
|
||||
import { PositionTypes } from "./data/PositionTypes";
|
||||
|
||||
import { numeralWrapper } from "../ui/numeralFormat";
|
||||
import { formatShares } from "../ui/formatNumber";
|
||||
import { Money } from "../ui/React/Money";
|
||||
|
||||
import { dialogBoxCreate } from "../ui/React/DialogBox";
|
||||
@@ -153,7 +153,7 @@ function executeOrder(order: Order, refs: IProcessOrderRefs): void {
|
||||
dialogBoxCreate(
|
||||
<>
|
||||
{order.type} for {stock.symbol} @ <Money money={order.price} /> ({pos}) was filled (
|
||||
{numeralWrapper.formatShares(Math.round(order.shares))} shares)
|
||||
{formatShares(Math.round(order.shares))} shares)
|
||||
</>,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user