swarm-ui: format the schedules page with treefmt
This commit is contained in:
parent
8a9e199bad
commit
207b089498
4 changed files with 14 additions and 8 deletions
|
|
@ -55,6 +55,8 @@ export function RelativeTime({
|
|||
|
||||
const ageSeconds = (now - epochMs) / 1000;
|
||||
return (
|
||||
<>{upcoming && ageSeconds < 0 ? fmtUntil(-ageSeconds) : fmtAgo(ageSeconds)}</>
|
||||
<>
|
||||
{upcoming && ageSeconds < 0 ? fmtUntil(-ageSeconds) : fmtAgo(ageSeconds)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue