Fix: Remove unused import

The `startNetworkMonitoring` import was removed from `src/App.tsx` because it does not exist in the `syncUtils` module.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-21 08:45:28 +00:00
parent 6ec671e9ab
commit 14b04cb384
3 changed files with 6 additions and 5 deletions

View File

@@ -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) => {

View File

@@ -32,7 +32,7 @@ export const useManualSync = (user: any) => {
try {
setSyncing(true);
// 인자 수정: 콜백 함수 제거
// 인자 수정: userId만 전달
const result = await trySyncAllData(userId);
handleSyncResult(result);

View File

@@ -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) {