Pull request #2337: ADG-9565

Merge in DNS/adguard-home from ADG-9565 to master

Squashed commit of the following:

commit ef92c2e891
Merge: a4364ff7e 91270d0b6
Author: Ildar Kamalov <ik@adguard.com>
Date:   Wed Jan 29 13:42:29 2025 +0300

    Merge branch 'master' into ADG-9565

commit a4364ff7ed
Author: Ildar Kamalov <ik@adguard.com>
Date:   Wed Jan 29 13:39:14 2025 +0300

    ADG-9565 format large numbers in the upstream table and query log
This commit is contained in:
Ildar Kamalov
2025-01-29 18:08:39 +03:00
committed by Igor 🐧 Lobanov
parent 91270d0b61
commit cc2006f616
3 changed files with 21 additions and 10 deletions

View File

@@ -10,6 +10,7 @@ import Card from '../ui/Card';
import DomainCell from './DomainCell';
import { DASHBOARD_TABLES_DEFAULT_PAGE_SIZE, TABLES_MIN_ROWS } from '../../helpers/constants';
import { formatNumber } from '../../helpers/helpers';
interface TimeCellProps {
value?: string | number;
@@ -20,7 +21,7 @@ const TimeCell = ({ value }: TimeCellProps) => {
return '';
}
const valueInMilliseconds = round(Number(value) * 1000);
const valueInMilliseconds = formatNumber(round(Number(value) * 1000));
return (
<div className="logs__row o-hidden">