mirror of
https://github.com/codedownio/time-ghc-modules.git
synced 2024-09-11 05:25:40 +03:00
One more thing
This commit is contained in:
parent
34e9ddccaf
commit
836eb2a29a
@ -4,7 +4,7 @@ import {useMemo} from "react";
|
||||
|
||||
import D3TreeMap from "./D3TreeMap";
|
||||
|
||||
// import {formatBytes, formatTime} from "./Util";
|
||||
import {formatBytes, formatTime} from "./Util";
|
||||
|
||||
|
||||
interface Props {
|
||||
@ -100,7 +100,7 @@ export default function TreeMap({aggregate, data}: Props) {
|
||||
return x.name;
|
||||
}}
|
||||
subLabelFn={(x) => {
|
||||
return x.size + " UNITS";
|
||||
return aggregate === "time" ? formatTime(x.size) : formatBytes(size);
|
||||
}}
|
||||
valueFn={(x) => {
|
||||
return x.size;
|
||||
|
Loading…
Reference in New Issue
Block a user