diff --git a/apps/frontend/src/pages/broker/BrokerOperationsTable.tsx b/apps/frontend/src/pages/broker/BrokerOperationsTable.tsx index 5705739..1a3c612 100644 --- a/apps/frontend/src/pages/broker/BrokerOperationsTable.tsx +++ b/apps/frontend/src/pages/broker/BrokerOperationsTable.tsx @@ -64,7 +64,7 @@ function OperationInstrument({ operation }: { operation: BrokerOperation }) { return {label}; } -const pagButtonStyle: React.CSSProperties = { +const pagButtonStyle = { padding: '6px 14px', borderRadius: 6, border: '1px solid #e0e0e0', @@ -74,13 +74,13 @@ const pagButtonStyle: React.CSSProperties = { fontWeight: 600, cursor: 'pointer', lineHeight: 1.4, -}; +} satisfies React.CSSProperties; -const pagButtonDisabledStyle: React.CSSProperties = { +const pagButtonDisabledStyle = { ...pagButtonStyle, opacity: 0.35, cursor: 'not-allowed', -}; +} satisfies React.CSSProperties; export function BrokerOperationsTable({ isLoading, diff --git a/apps/frontend/src/pages/broker/BrokerPages.test.tsx b/apps/frontend/src/pages/broker/BrokerPages.test.tsx index a86b0b6..67c22e6 100644 --- a/apps/frontend/src/pages/broker/BrokerPages.test.tsx +++ b/apps/frontend/src/pages/broker/BrokerPages.test.tsx @@ -311,7 +311,7 @@ describe('Broker pages', () => { expect(screen.getByText('Выплата купона')).toBeInTheDocument(); expect(screen.getByText('Налог')).toBeInTheDocument(); - expect(screen.getByText(/\+120,00\s*[₽Р]/)).toBeInTheDocument(); + expect(screen.getByText(/\+120,00\s*₽/)).toBeInTheDocument(); expect(screen.getByRole('link', { name: 'SU26238RMFS5' })).toHaveAttribute( 'href', '/bonds/SU26238RMFS5', diff --git a/docs/superpowers/specs/2026-06-17-broker-operations-ui-improvements.md b/docs/superpowers/specs/2026-06-17-broker-operations-ui-improvements.md index 7c02599..6e381a3 100644 --- a/docs/superpowers/specs/2026-06-17-broker-operations-ui-improvements.md +++ b/docs/superpowers/specs/2026-06-17-broker-operations-ui-improvements.md @@ -22,7 +22,7 @@ - Компонент `OperationType` (строки 87-108) - Объект `impactStyles` (строки 30-47) - Импорт `getBrokerOperationImpactLabel` (не используется больше) -- Импорт `type BrokerOperationImpact` (не используется больше) +- Импорт `type BrokerOperationImpact` не удаляется — он всё ещё используется в сигнатуре `moneyColor(impact: BrokerOperationImpact)` **Сохраняется:** - `getBrokerOperationImpact()` — всё ещё нужна для `moneyColor()` (цвет суммы)