From e7e777462c838c6f64f53fdb2d0ea113a4656de2 Mon Sep 17 00:00:00 2001 From: YuHyun Date: Tue, 23 Jan 2024 23:34:12 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20=EC=BD=94=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [#304] --- .../quiz/QuizCoachmark/QuizCoachmark.tsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/packages/frontend/src/components/quiz/QuizCoachmark/QuizCoachmark.tsx b/packages/frontend/src/components/quiz/QuizCoachmark/QuizCoachmark.tsx index 9bcc8ae..7152f87 100644 --- a/packages/frontend/src/components/quiz/QuizCoachmark/QuizCoachmark.tsx +++ b/packages/frontend/src/components/quiz/QuizCoachmark/QuizCoachmark.tsx @@ -7,16 +7,7 @@ interface QuizCoachmarkProps { } export function QuizCoachmark({ onTourEnd }: QuizCoachmarkProps) { - const handleProgress: CoachmarkProps["callback"] = ({ - index: stepIndex, - type, - action, - }) => { - if (stepIndex === HEARDER_OVERLAP_STEP && type === EVENTS.TOOLTIP) { - window?.scroll(0, 0); - return; - } - + const handleProgress: CoachmarkProps["callback"] = ({ type, action }) => { if (type === EVENTS.TOUR_END || action === ACTIONS.CLOSE) { onTourEnd(); } @@ -41,9 +32,6 @@ export const COACHMARK_TARGETS = { RESIZABLE: "coach--resizable", }; -const GIT_GRAPH_STEP = 0; -const HEARDER_OVERLAP_STEP = GIT_GRAPH_STEP; - const STEPS: CoachmarkProps["steps"] = [ { title: "Git ๊ทธ๋ž˜ํ”„",