add new keys for minutes and seconds (s,m)

This commit is contained in:
Ash Monsh 2023-04-20 12:47:29 +03:00
parent b39ef68372
commit 058c069d0c
4 changed files with 23 additions and 1 deletions

View file

@ -104,7 +104,13 @@ export default function MetricsBar({ websiteId }) {
-1 || 0
: 0
}
format={n => `${n < 0 ? '-' : ''}${formatShortTime(Math.abs(~~n), ['m', 's'], ' ')}`}
format={n =>
`${n < 0 ? '-' : ''}${formatShortTime(
Math.abs(~~n),
[formatMessage(labels.minutes), formatMessage(labels.seconds)],
' ',
)}`
}
/>
</>
)}