diff --git a/src/App.tsx b/src/App.tsx index bddd2cc..edf9f84 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -20,7 +20,7 @@ import PaymentMethods from './pages/PaymentMethods'; import Settings from './pages/Settings'; import { BudgetProvider } from './contexts/BudgetContext'; import PrivateRoute from './components/auth/PrivateRoute'; -import { initSyncState, startNetworkMonitoring } from './utils/syncUtils'; +import { initSyncState } from './utils/syncUtils'; // 전역 오류 핸들러 const handleError = (error: Error | unknown) => { @@ -157,4 +157,4 @@ function App() { ; } -export default App; \ No newline at end of file +export default App; diff --git a/src/hooks/sync/useManualSync.ts b/src/hooks/sync/useManualSync.ts index e8991f0..b80d210 100644 --- a/src/hooks/sync/useManualSync.ts +++ b/src/hooks/sync/useManualSync.ts @@ -32,7 +32,7 @@ export const useManualSync = (user: any) => { try { setSyncing(true); - // 인자 수정: 콜백 함수 제거 + // 인자 수정: userId만 전달 const result = await trySyncAllData(userId); handleSyncResult(result); diff --git a/src/hooks/sync/useSyncToggle.ts b/src/hooks/sync/useSyncToggle.ts index 92468fe..9df3001 100644 --- a/src/hooks/sync/useSyncToggle.ts +++ b/src/hooks/sync/useSyncToggle.ts @@ -1,3 +1,4 @@ + import { useState, useEffect } from 'react'; import { useAuth } from '@/contexts/auth'; import { toast } from '@/hooks/useToast.wrapper'; @@ -81,7 +82,7 @@ export const useSyncToggle = () => { if (checked && user) { try { - // 인자 수정: 콜백 함수 제거 + // 인자 수정: userId만 전달 await performSync(user.id); } catch (error) { console.error('동기화 중 오류, 로컬 데이터 복원 시도:', error); @@ -119,7 +120,7 @@ const performSync = async (userId: string) => { if (!userId) return; try { - // 인자 수정: 콜백 함수 제거 + // 인자 수정: userId만 전달 const result = await trySyncAllData(userId); return result; } catch (error) {