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
@@ -1,7 +1,7 @@
import React from "react";
import { numeralWrapper } from "../numeralFormat";
import { formatHashes } from "../formatNumber";
import { Hashes } from "./Hashes";
export function HashRate({ hashes }: { hashes: number }): React.ReactElement {
return <Hashes hashes={`${numeralWrapper.formatHashes(hashes)} h / s`} />;
return <Hashes hashes={`${formatHashes(hashes)} h / s`} />;
}