Fix TS errors and module issues

- Corrected module exports and imports to resolve TypeScript errors.
- Fixed property access errors in budget synchronization logic.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-21 11:30:08 +00:00
parent 8e6eb9d8aa
commit 42c9bc4000
5 changed files with 119 additions and 8 deletions

View File

@@ -1,7 +1,8 @@
import { useState, useEffect, useCallback } from 'react';
import { resetAllData } from '@/contexts/budget/storage';
import { resetAllStorageData } from '@/utils/storageUtils';
import { clearCloudData } from '@/utils/syncUtils';
import { clearCloudData } from '@/utils/sync/clearCloudData';
import { useAuth } from '@/contexts/auth';
export const useDataInitialization = (resetBudgetData?: () => void) => {