feat: Typing the bank rules hooks

This commit is contained in:
Ahmed Bouhuolia
2024-06-30 08:27:32 +02:00
parent f816e7f25c
commit 48ff93b6ab
3 changed files with 215 additions and 66 deletions

View File

@@ -1,6 +1,6 @@
import { defaultTo } from 'lodash';
import React, { createContext } from 'react';
import { useMatchingTransactions } from '@/hooks/query/bank-rules';
import { useGetBankTransactionsMatches } from '@/hooks/query/bank-rules';
interface MatchingTransactionBootValues {
isMatchingTransactionsLoading: boolean;
@@ -26,7 +26,7 @@ function MatchingTransactionBoot({
const {
data: matchingTransactions,
isLoading: isMatchingTransactionsLoading,
} = useMatchingTransactions(uncategorizedTransactionId);
} = useGetBankTransactionsMatches(uncategorizedTransactionId);
const provider = {
isMatchingTransactionsLoading,