From 854528701e941867376fe0955679faf768819fee Mon Sep 17 00:00:00 2001 From: Ricearoni1245 Date: Thu, 2 Apr 2026 22:16:34 -0500 Subject: [PATCH] moved tip to records page for month reference --- web/src/pages/DashboardPage.tsx | 6 ------ web/src/pages/TransactionsPage.tsx | 12 ++++++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/web/src/pages/DashboardPage.tsx b/web/src/pages/DashboardPage.tsx index 088da41..18b6e66 100644 --- a/web/src/pages/DashboardPage.tsx +++ b/web/src/pages/DashboardPage.tsx @@ -1300,9 +1300,6 @@ function RecentTransactionsPanel({

{title}

{rangeLabel ?
{rangeLabel}
: null} -
- Tip: Records defaults to This month ({currentMonthLabel}). -

{title}

{rangeLabel ?
{rangeLabel}
: null} -
- Tip: Records defaults to This month ({currentMonthLabel}). -
{/* Desktop table view */}
diff --git a/web/src/pages/TransactionsPage.tsx b/web/src/pages/TransactionsPage.tsx index 319711b..bdcff9a 100644 --- a/web/src/pages/TransactionsPage.tsx +++ b/web/src/pages/TransactionsPage.tsx @@ -64,12 +64,24 @@ export default function TransactionsPage() { return [...categoryOptions, ...planOptions]; }, [dashboard?.variableCategories, dashboard?.fixedPlans]); + const currentMonthLabel = useMemo( + () => + new Intl.DateTimeFormat("en-US", { + month: "long", + year: "numeric", + }).format(new Date()), + [] + ); + return (

Records

+
+ Tip: Records defaults to This month ({currentMonthLabel}). +