diff --git a/frontend/src/components/dashboard/RecentTransactionsCard.tsx b/frontend/src/components/dashboard/RecentTransactionsCard.tsx index f2ffc43..76fc26e 100644 --- a/frontend/src/components/dashboard/RecentTransactionsCard.tsx +++ b/frontend/src/components/dashboard/RecentTransactionsCard.tsx @@ -3,7 +3,9 @@ import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/Card"; import { getCategoryIcon } from "@/lib/icons"; import { formatCurrency, formatTransactionDate } from "@/lib/format"; import { useTranslation } from "@/lib/i18n"; +import { categoryPath, translateCategoryName } from "@/lib/categoryLabels"; import { useTransactions } from "@/hooks/useTransactions"; +import { useCategories } from "@/hooks/useCategories"; interface RecentTransactionsCardProps { year: number; @@ -13,6 +15,7 @@ interface RecentTransactionsCardProps { export function RecentTransactionsCard({ year, month }: RecentTransactionsCardProps) { const { t } = useTranslation(); const { data, isLoading } = useTransactions({ year, month, page: 1, page_size: 6 }); + const { data: categories } = useCategories(); return ( @@ -33,10 +36,16 @@ export function RecentTransactionsCard({ year, month }: RecentTransactionsCardPr ) : (