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 Settings from './pages/Settings';
import { BudgetProvider } from './contexts/BudgetContext'; import { BudgetProvider } from './contexts/BudgetContext';
import PrivateRoute from './components/auth/PrivateRoute'; import PrivateRoute from './components/auth/PrivateRoute';
import { initSyncState, startNetworkMonitoring } from './utils/syncUtils'; import { initSyncState } from './utils/syncUtils';
// 전역 오류 핸들러 // 전역 오류 핸들러
const handleError = (error: Error | unknown) => { const handleError = (error: Error | unknown) => {
@@ -157,4 +157,4 @@ function App() {
</AuthContextWrapper> </AuthContextWrapper>
</ErrorBoundary>; </ErrorBoundary>;
} }
export default App; export default App;

View File

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

View File

@@ -1,3 +1,4 @@
import { useState, useEffect } from 'react'; import { useState, useEffect } from 'react';
import { useAuth } from '@/contexts/auth'; import { useAuth } from '@/contexts/auth';
import { toast } from '@/hooks/useToast.wrapper'; import { toast } from '@/hooks/useToast.wrapper';
@@ -81,7 +82,7 @@ export const useSyncToggle = () => {
if (checked && user) { if (checked && user) {
try { try {
// 인자 수정: 콜백 함수 제거 // 인자 수정: userId만 전달
await performSync(user.id); await performSync(user.id);
} catch (error) { } catch (error) {
console.error('동기화 중 오류, 로컬 데이터 복원 시도:', error); console.error('동기화 중 오류, 로컬 데이터 복원 시도:', error);
@@ -119,7 +120,7 @@ const performSync = async (userId: string) => {
if (!userId) return; if (!userId) return;
try { try {
// 인자 수정: 콜백 함수 제거 // 인자 수정: userId만 전달
const result = await trySyncAllData(userId); const result = await trySyncAllData(userId);
return result; return result;
} catch (error) { } catch (error) {