diff --git a/apps/frontend/src/pages/broker/BrokerOperationsTable.tsx b/apps/frontend/src/pages/broker/BrokerOperationsTable.tsx index 1a3c612..89539a5 100644 --- a/apps/frontend/src/pages/broker/BrokerOperationsTable.tsx +++ b/apps/frontend/src/pages/broker/BrokerOperationsTable.tsx @@ -6,6 +6,7 @@ import { getBrokerOperationTypeLabel, type BrokerOperationImpact, } from './brokerDisplay'; +import { TableSkeleton } from '../../components/TableSkeleton'; const tableStyle = { width: '100%', @@ -50,18 +51,28 @@ function moneyColor(impact: BrokerOperationImpact): string { } function OperationInstrument({ operation }: { operation: BrokerOperation }) { - const label = operation.ticker || operation.description || '-'; + const ticker = operation.ticker || operation.description || '-'; const path = getBrokerInstrumentPath({ ticker: operation.ticker, instrumentType: operation.instrumentType, classCode: operation.classCode, }); + const name = operation.name || operation.description; - if (!path || label === '-') { - return {label}; - } + if (!path && !name) return -; + if (!path) return {name}; + if (!ticker || ticker === '-') return {name}; - return {label}; + return ( +
Загрузка операций...
+| + Дата + | ++ Тип + | ++ Инструмент + | ++ Сумма + | +
|---|
Операций за выбранный период нет
) : (