refactor: remove unused imports and improve variable naming for clarity in statistics and transactions components

This commit is contained in:
Julien Froidefond
2025-12-01 08:35:33 +01:00
parent b3b25412ad
commit 757b1b84ab
5 changed files with 4 additions and 6 deletions

View File

@@ -121,6 +121,7 @@ export function OFXImportDialog({
type: parsed.accountType as Account["type"],
folderId: "folder-root",
balance: parsed.balance,
initialBalance: parsed.balance,
currency: parsed.currency,
lastImport: new Date().toISOString(),
externalUrl: null,
@@ -297,6 +298,7 @@ export function OFXImportDialog({
type: parsedData.accountType as Account["type"],
folderId: selectedFolder,
balance: parsedData.balance,
initialBalance: parsedData.balance,
currency: parsedData.currency,
lastImport: new Date().toISOString(),
externalUrl: null,

View File

@@ -10,7 +10,6 @@ import {
Cell,
Tooltip,
ResponsiveContainer,
Legend,
} from "recharts";
import { Layers, List, ChevronDown, ChevronUp } from "lucide-react";
import type { Category } from "@/lib/types";
@@ -38,7 +37,7 @@ interface CategoryPieChartProps {
export function CategoryPieChart({
data,
dataByParent,
categories = [],
categories: _categories = [],
formatCurrency,
title = "Répartition par catégorie",
height = 300,

View File

@@ -238,7 +238,7 @@ export function TransactionTable({
{virtualizer.getVirtualItems().map((virtualRow) => {
const transaction = transactions[virtualRow.index];
const account = getAccount(transaction.accountId);
const category = getCategory(transaction.categoryId);
const _category = getCategory(transaction.categoryId);
const isFocused = focusedIndex === virtualRow.index;
return (