From a8f29e669f9015d4f7e12f78d196b5f6acd8264d Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 22 Mar 2025 06:28:12 +0000 Subject: [PATCH] Fix TS2686 error in syncResultHandler The file `src/hooks/sync/syncResultHandler.ts` was throwing a TS2686 error because it was using `React` without importing it, even though it's a module. This commit adds `import React from 'react';` to resolve the issue. --- src/hooks/sync/syncResultHandler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/sync/syncResultHandler.ts b/src/hooks/sync/syncResultHandler.ts index 7b942da..073f1f2 100644 --- a/src/hooks/sync/syncResultHandler.ts +++ b/src/hooks/sync/syncResultHandler.ts @@ -1,4 +1,5 @@ +import React, { useEffect } from 'react'; import { SyncResult } from '@/utils/sync/data'; import { toast } from '@/hooks/useToast.wrapper'; import useNotifications from '@/hooks/useNotifications'; @@ -79,7 +80,7 @@ export const useSyncNotifications = () => { const { addNotification } = useNotifications(); // 컴포넌트 마운트 시 알림 함수 설정 - React.useEffect(() => { + useEffect(() => { setSyncNotificationAdder(addNotification); return () => setSyncNotificationAdder(null); }, [addNotification]);