mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-22 08:28:10 -07:00
global: replace most bps with ppm
This commit is contained in:
@@ -43,7 +43,7 @@ export function formatDateAndAge(unixSeconds) {
|
||||
|
||||
const [unit, seconds] = RELATIVE_UNITS.find(([, duration]) => {
|
||||
return absolute >= duration;
|
||||
}) ?? RELATIVE_UNITS.at(-1);
|
||||
}) ?? RELATIVE_UNITS[RELATIVE_UNITS.length - 1];
|
||||
|
||||
return `${date} · ${RELATIVE_TIME.format(Math.trunc(difference / seconds), unit)}`;
|
||||
}
|
||||
|
||||
@@ -124,8 +124,8 @@ export function hitTest(geometry, x, y) {
|
||||
/**
|
||||
* @typedef {Object} SquareLayout
|
||||
* @property {number} columns
|
||||
* @property {SquareCell[]} resolvedCells
|
||||
* @property {SquareCellLayout[]} layouts
|
||||
* @property {readonly SquareCell[]} resolvedCells
|
||||
* @property {readonly SquareCellLayout[]} layouts
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user