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:
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user