Fix Typescript and module errors

- Resolve Typescript isolatedModules error by using 'export type' when re-exporting types.
- Fix module ambiguity by explicitly re-exporting 'BudgetContextType'.
- Correct import paths for useAuth hook in transaction-related files.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-19 14:13:31 +00:00
parent 40003d8f28
commit 92fc5ce34f
3 changed files with 4 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ export const BudgetProvider: React.FC<{ children: React.ReactNode }> = ({ childr
}; };
// useBudget 훅은 useBudget.ts 파일로 이동했습니다 // useBudget 훅은 useBudget.ts 파일로 이동했습니다
export { useBudget, BudgetContextType } from './useBudget'; export { useBudget } from './useBudget';
export type { BudgetContextType } from './useBudget';
export type { BudgetPeriod } from './types'; export type { BudgetPeriod } from './types';

View File

@@ -1,7 +1,7 @@
import { useCallback, useRef, useEffect } from 'react'; import { useCallback, useRef, useEffect } from 'react';
import { Transaction } from '@/components/TransactionCard'; import { Transaction } from '@/components/TransactionCard';
import { useAuth } from '@/contexts/auth/AuthProvider'; import { useAuth } from '@/contexts/auth/useAuth';
import { toast } from '@/hooks/useToast.wrapper'; import { toast } from '@/hooks/useToast.wrapper';
import { saveTransactionsToStorage } from './storageUtils'; import { saveTransactionsToStorage } from './storageUtils';
import { deleteTransactionFromServer } from '@/utils/sync/transaction/deleteTransaction'; import { deleteTransactionFromServer } from '@/utils/sync/transaction/deleteTransaction';

View File

@@ -1,7 +1,7 @@
import { useCallback } from 'react'; import { useCallback } from 'react';
import { Transaction } from '@/components/TransactionCard'; import { Transaction } from '@/components/TransactionCard';
import { useAuth } from '@/contexts/auth/AuthProvider'; import { useAuth } from '@/contexts/auth/useAuth';
import { toast } from '@/hooks/useToast.wrapper'; import { toast } from '@/hooks/useToast.wrapper';
import { saveTransactionsToStorage } from '../storageUtils'; import { saveTransactionsToStorage } from '../storageUtils';
import { updateTransactionInSupabase } from '../supabaseUtils'; import { updateTransactionInSupabase } from '../supabaseUtils';