From da78ee37014c53cc9e00238532374b79efc78962 Mon Sep 17 00:00:00 2001 From: doyi0107 Date: Sat, 21 Sep 2024 23:58:48 +0900 Subject: [PATCH] =?UTF-8?q?[fix/#137]:event=ED=83=80=EC=9E=85=EB=AA=85?= =?UTF-8?q?=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/study/Timer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/study/Timer.tsx b/components/study/Timer.tsx index 48267dc..8ea3812 100644 --- a/components/study/Timer.tsx +++ b/components/study/Timer.tsx @@ -56,7 +56,7 @@ export default function Timer({ maxTime, currentTime, initialSubjects }: ITimer) // 브라우저 닫힘 이벤트 처리 useEffect(() => { - const handleBeforeUnload = (event) => { + const handleBeforeUnload = (event: BeforeUnloadEvent) => { // 기본 알림 메시지를 설정합니다. event.preventDefault(); event.returnValue = '정말로 페이지를 떠나시겠습니까?'; // 보안상 커스텀한 메시지로 알림불가