From 873ab7e2bb8c27925e9814bbafe7899003c2ac7d Mon Sep 17 00:00:00 2001 From: AlexSserb Date: Sun, 17 Nov 2024 01:33:11 +0400 Subject: [PATCH] fix: fixed wrapping on statistics page --- .../tabs/ProfitTab/components/ProfitChart/ProfitChart.tsx | 2 +- .../tabs/ProfitTab/components/ProfitTable/ProfitTable.tsx | 2 +- .../tabs/ProfitTab/components/ProfitTable/hooks/columns.tsx | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/StatisticsPage/tabs/ProfitTab/components/ProfitChart/ProfitChart.tsx b/src/pages/StatisticsPage/tabs/ProfitTab/components/ProfitChart/ProfitChart.tsx index 86b5a88..dc9a16c 100644 --- a/src/pages/StatisticsPage/tabs/ProfitTab/components/ProfitChart/ProfitChart.tsx +++ b/src/pages/StatisticsPage/tabs/ProfitTab/components/ProfitChart/ProfitChart.tsx @@ -26,7 +26,7 @@ export const ProfitChart = () => { const units = ["₽", "шт"]; return ( - + diff --git a/src/pages/StatisticsPage/tabs/ProfitTab/components/ProfitTable/ProfitTable.tsx b/src/pages/StatisticsPage/tabs/ProfitTab/components/ProfitTable/ProfitTable.tsx index 6d70697..61a1f1f 100644 --- a/src/pages/StatisticsPage/tabs/ProfitTab/components/ProfitTable/ProfitTable.tsx +++ b/src/pages/StatisticsPage/tabs/ProfitTab/components/ProfitTable/ProfitTable.tsx @@ -9,7 +9,7 @@ export const ProfitTable = () => { const { table, form, isLoading } = useProfitTable(); return ( - + diff --git a/src/pages/StatisticsPage/tabs/ProfitTab/components/ProfitTable/hooks/columns.tsx b/src/pages/StatisticsPage/tabs/ProfitTab/components/ProfitTable/hooks/columns.tsx index e5e742b..408fce1 100644 --- a/src/pages/StatisticsPage/tabs/ProfitTab/components/ProfitTable/hooks/columns.tsx +++ b/src/pages/StatisticsPage/tabs/ProfitTab/components/ProfitTable/hooks/columns.tsx @@ -30,22 +30,26 @@ export const useProfitTableColumns = ({ groupTableBy }: Props) => { } return row.original.groupedValue; }, + size: 60, }, { accessorKey: "dealsCount", header: "Кол-во", + size: 40, }, { accessorKey: "profit", header: "Прибыль", Cell: ({ row }) => row.original.profit.toLocaleString("ru-RU") + "₽", + size: 50, }, { accessorKey: "revenue", header: "Выручка", Cell: ({ row }) => row.original.revenue.toLocaleString("ru-RU") + "₽", + size: 50, }, ], [groupTableBy],