refactor: clean up imports and enhance type definitions across multiple components for improved clarity and maintainability
This commit is contained in:
@@ -16,7 +16,7 @@ import {
|
||||
normalizeDescription,
|
||||
suggestKeyword,
|
||||
} from "@/components/rules/constants";
|
||||
import type { Transaction, Category } from "@/lib/types";
|
||||
import type { Transaction } from "@/lib/types";
|
||||
|
||||
interface TransactionGroup {
|
||||
key: string;
|
||||
|
||||
@@ -52,7 +52,7 @@ export default function SettingsPage() {
|
||||
|
||||
update(importedData);
|
||||
alert("Données importées avec succès");
|
||||
} catch (error) {
|
||||
} catch {
|
||||
alert("Erreur lors de l'import");
|
||||
} finally {
|
||||
setImporting(false);
|
||||
|
||||
Reference in New Issue
Block a user