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
+3 -3
View File
@@ -3,7 +3,7 @@ import LinearProgress from "@mui/material/LinearProgress";
import { TableCell, Tooltip, Typography } from "@mui/material";
import { characterOverviewStyles } from "./CharacterOverview";
import { ISkillProgress } from "src/PersonObjects/formulas/skill";
import { numeralWrapper } from "../numeralFormat";
import { formatExp } from "../formatNumber";
interface IProgressProps {
min: number;
@@ -30,10 +30,10 @@ export function StatsProgressBar({
const tooltip = (
<Typography sx={{ textAlign: "right" }}>
<strong>Progress:</strong>&nbsp;
{numeralWrapper.formatExp(current)} / {numeralWrapper.formatExp(max - min)}
{formatExp(current)} / {formatExp(max - min)}
<br />
<strong>Remaining:</strong>&nbsp;
{numeralWrapper.formatExp(remaining)} ({progress.toFixed(2)}%)
{formatExp(remaining)} ({progress.toFixed(2)}%)
</Typography>
);