Skip to content

Commit

Permalink
refactor: 불필요한 코드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
YuHyun-P committed Feb 3, 2024
1 parent f1cd7be commit 299e918
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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 그래프",
Expand Down

0 comments on commit 299e918

Please sign in to comment.