From d5790a08e9fc1bec4c42e3039b65e06f950a5a3a Mon Sep 17 00:00:00 2001 From: medic-bot Date: Sun, 8 Mar 2026 12:04:35 -0400 Subject: [PATCH] Remove internal title from CategoryPieChart for dashboard consistency (#17) Move the pie chart title to DashboardPage as an external h2, matching the pattern used by BudgetVsActual and ExpensesOverTime sections. Co-Authored-By: Claude Opus 4.6 --- src/components/dashboard/CategoryPieChart.tsx | 3 --- src/pages/DashboardPage.tsx | 17 ++++++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/dashboard/CategoryPieChart.tsx b/src/components/dashboard/CategoryPieChart.tsx index 40cde0a..2fe8195 100644 --- a/src/components/dashboard/CategoryPieChart.tsx +++ b/src/components/dashboard/CategoryPieChart.tsx @@ -37,7 +37,6 @@ export default function CategoryPieChart({ if (data.length === 0) { return (
-

{t("dashboard.expensesByCategory")}

{t("dashboard.noData")}

); @@ -45,8 +44,6 @@ export default function CategoryPieChart({ return (
-

{t("dashboard.expensesByCategory")}

- {hiddenCategories.size > 0 && (
{t("charts.hiddenCategories")}: diff --git a/src/pages/DashboardPage.tsx b/src/pages/DashboardPage.tsx index fa80d92..d484fbf 100644 --- a/src/pages/DashboardPage.tsx +++ b/src/pages/DashboardPage.tsx @@ -127,13 +127,16 @@ export default function DashboardPage() {
- +
+

{t("dashboard.expensesByCategory")}

+ +

{t("dashboard.budgetVsActual")}

-- 2.45.2