UI: Added new locale-aware and configurable number formatting (#354)

This commit is contained in:
Snarling
2023-02-11 13:18:50 -05:00
committed by GitHub
parent 1f5546b721
commit b4074328ec
1231 changed files with 4233 additions and 11958 deletions
+2 -2
View File
@@ -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)
</>,
);
}