Fix transaction delete type mismatch
The TransactionsContent component's onTransactionDelete prop was expecting a function that returns a boolean or a Promise<boolean>, but was receiving a function that returns void. This commit updates the type definition to match the expected return type.
This commit is contained in:
@@ -13,7 +13,7 @@ interface TransactionsContentProps {
|
||||
searchQuery: string;
|
||||
selectedMonth: string;
|
||||
setSearchQuery: (query: string) => void;
|
||||
onTransactionDelete: (id: string) => void;
|
||||
onTransactionDelete: (id: string) => Promise<boolean> | boolean;
|
||||
isDisabled: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user