diff --git a/frontend/package.json b/frontend/package.json index cef9cd7..9d9d78e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "aurum-frontend", "private": true, - "version": "0.15.2", + "version": "0.15.3", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/components/dashboard/RecentTransactionsCard.tsx b/frontend/src/components/dashboard/RecentTransactionsCard.tsx index 4bd4bcb..daf2a86 100644 --- a/frontend/src/components/dashboard/RecentTransactionsCard.tsx +++ b/frontend/src/components/dashboard/RecentTransactionsCard.tsx @@ -5,9 +5,14 @@ import { formatCurrency, formatTransactionDate } from "@/lib/format"; import { useTranslation } from "@/lib/i18n"; import { useTransactions } from "@/hooks/useTransactions"; -export function RecentTransactionsCard() { +interface RecentTransactionsCardProps { + year: number; + month: number; +} + +export function RecentTransactionsCard({ year, month }: RecentTransactionsCardProps) { const { t } = useTranslation(); - const { data, isLoading } = useTransactions({ page: 1, page_size: 6 }); + const { data, isLoading } = useTransactions({ year, month, page: 1, page_size: 6 }); return ( diff --git a/frontend/src/pages/DashboardPage.tsx b/frontend/src/pages/DashboardPage.tsx index 0606446..643d1ce 100644 --- a/frontend/src/pages/DashboardPage.tsx +++ b/frontend/src/pages/DashboardPage.tsx @@ -69,7 +69,7 @@ export function DashboardPage() {
- +
);