mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 17:53:00 +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 { 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`} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user