Display relay consumption history
This commit is contained in:
@ -61,7 +61,10 @@ export function TimeWidget(p: {
|
||||
}): React.ReactElement {
|
||||
if (!p.time) return <></>;
|
||||
return (
|
||||
<Tooltip title={formatDate(p.time)} arrow>
|
||||
<Tooltip
|
||||
title={formatDate(p.diff ? new Date().getTime() / 1000 - p.time : p.time)}
|
||||
arrow
|
||||
>
|
||||
<span>{p.diff ? timeDiff(0, p.time) : timeDiffFromNow(p.time)}</span>
|
||||
</Tooltip>
|
||||
);
|
||||
|
Reference in New Issue
Block a user