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}). +