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:
@@ -1,7 +1,7 @@
|
||||
|
||||
import { useCallback, useRef, useEffect } from 'react';
|
||||
import { Transaction } from '@/components/TransactionCard';
|
||||
import { useAuth } from '@/contexts/auth/AuthProvider';
|
||||
import { useAuth } from '@/contexts/auth/useAuth';
|
||||
import { toast } from '@/hooks/useToast.wrapper';
|
||||
import { saveTransactionsToStorage } from './storageUtils';
|
||||
import { deleteTransactionFromServer } from '@/utils/sync/transaction/deleteTransaction';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
import { useCallback } from 'react';
|
||||
import { Transaction } from '@/components/TransactionCard';
|
||||
import { useAuth } from '@/contexts/auth/AuthProvider';
|
||||
import { useAuth } from '@/contexts/auth/useAuth';
|
||||
import { toast } from '@/hooks/useToast.wrapper';
|
||||
import { saveTransactionsToStorage } from '../storageUtils';
|
||||
import { updateTransactionInSupabase } from '../supabaseUtils';
|
||||
|
||||
Reference in New Issue
Block a user