refactor: remove unused imports and improve variable naming for clarity in statistics and transactions components
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user