BUR-61 добавлена возможность сохранять и отображать current.value = null значений

This commit is contained in:
Первов Артем
2026-07-05 21:43:32 +03:00
parent e396fbbb8a
commit 3d395aaa8d
5 changed files with 11 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ import { CalendarDays, CalendarClock, Check, ChevronDown, Clock3, DatabaseZap, S
import type { CurrentItem } from '../../../entities/current/types';
import { HistoryChart } from '../../../features/history-chart/HistoryChart';
import { RANGE_PRESETS, createRange, type DateRangeState } from '../../../features/history/dateRange';
import { toIsoFromInput } from '../../../utils/format';
import { formatNumber, toIsoFromInput } from '../../../utils/format';
import type { HistoryGranularity } from '../../../utils/historyGranularity';
type ArchiveViewProps = {
@@ -191,7 +191,7 @@ export function ArchiveView({
{label !== item.tag ? <small>{item.tag}</small> : null}
</span>
<span className="tag-select-item__side">
<strong>{item.value.toLocaleString('ru-RU', { maximumFractionDigits: item.precision ?? 3 })}</strong>
<strong>{formatNumber(item.value)}</strong>
{selected ? <Check size={15} /> : null}
</span>
</button>