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:
@@ -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';
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user