refactor: clean up imports and improve code consistency across various components; remove unused imports in page.tsx, add missing imports in categories page, and standardize formatting in hooks and chart components
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 1m30s

This commit is contained in:
Julien Froidefond
2025-12-22 08:46:59 +01:00
parent 7c3f522531
commit b2eac21bdf
6 changed files with 29 additions and 20 deletions

View File

@@ -164,7 +164,7 @@ export function useTransactionsChartData({
);
return monthlyChartData;
}, [transactionsData]);
}, [transactionsData, metadata]);
// Calculate category chart data (expenses only)
const categoryData = useMemo(() => {

View File

@@ -213,7 +213,7 @@ export function useTransactionsPage() {
} else {
setIsCustomDatePickerOpen(true);
}
}, []);
}, [setPeriod]);
const handleCustomStartDateChange = useCallback((date: Date | undefined) => {
setCustomStartDate(date);