Fix import error
The `updateTransaction` function was not exported from the `updateTransaction.ts` file. Changed the import statement to use the correct function name `useUpdateTransaction`.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { useCallback } from 'react';
|
||||
import { Transaction } from '@/components/TransactionCard';
|
||||
import { useDeleteTransaction } from '../deleteTransaction';
|
||||
import { updateTransaction } from './updateTransaction';
|
||||
import { useUpdateTransaction } from './updateTransaction';
|
||||
|
||||
/**
|
||||
* 트랜잭션 작업 통합 훅
|
||||
@@ -18,7 +18,8 @@ export const useTransactionsOperations = (
|
||||
const handleUpdateTransaction = useCallback((
|
||||
updatedTransaction: Transaction
|
||||
) => {
|
||||
updateTransaction(transactions, setTransactions, updatedTransaction);
|
||||
const updateTransaction = useUpdateTransaction(transactions, setTransactions);
|
||||
updateTransaction(updatedTransaction);
|
||||
}, [transactions, setTransactions]);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user