From 1cabe2d71e18acc74004e741f98ca8de1cec588f Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Sun, 21 Jun 2026 20:38:01 +0300 Subject: [PATCH] feat: migrate BrokerAllocationChart wrappers to design system --- .../ui/BrokerAllocationChart.tsx | 50 ++++++++++++------- 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/apps/frontend/src/widgets/broker-allocation-chart/ui/BrokerAllocationChart.tsx b/apps/frontend/src/widgets/broker-allocation-chart/ui/BrokerAllocationChart.tsx index 232825d..8efdef9 100644 --- a/apps/frontend/src/widgets/broker-allocation-chart/ui/BrokerAllocationChart.tsx +++ b/apps/frontend/src/widgets/broker-allocation-chart/ui/BrokerAllocationChart.tsx @@ -1,4 +1,6 @@ import type { BrokerPortfolio } from '@/shared/api/responses'; +import { Box } from '@mui/material'; +import { Text } from '@moex-vibe/design-system'; import { buildBrokerAllocation } from '@/entities/broker-position'; import { formatBrokerCurrencyValue } from '@/shared/lib/formatters'; @@ -26,7 +28,7 @@ export function BrokerAllocationChart({ portfolio }: { portfolio: BrokerPortfoli }); return ( -
+ Структура брокерского портфеля {arcs.map((sector) => ( @@ -44,40 +46,50 @@ export function BrokerAllocationChart({ portfolio }: { portfolio: BrokerPortfoli /> ))} -
+ {sectors.length === 0 ? ( -

Нет данных для распределения

+ Нет данных для распределения ) : ( -
    + {sectors.map((sector) => ( -
  • - +
  • +
    + ))} -
+
)} {negative.length > 0 && ( -
    {negative.map((item) => ( -
  • + {item.label}: отрицательное значение{' '} {formatBrokerCurrencyValue(currency, item.value)} -
  • + ))} -
+ )} -
-
+ + ); }