11import { useMutation , useQuery , useQueryClient } from "@tanstack/react-query" ;
22import { useNavigate } from "@tanstack/react-router" ;
33import { differenceInSeconds , isValid , parseISO } from "date-fns" ;
4- import { motion } from "motion/react" ;
54import { Tooltip } from "radix-ui" ;
65import { useEffect , useRef , useState } from "react" ;
76import { Timer } from "@/components/timer/Timer" ;
@@ -17,8 +16,6 @@ import StopIcon from "../../../components/icons/StopIcon";
1716
1817const HOLD_MS = 1000 ;
1918
20- const MotionTooltipContent = motion . create ( Tooltip . Content ) ;
21-
2219export default function MissionTimer ( {
2320 showMockStopButton,
2421 isTooltipOpen,
@@ -181,26 +178,14 @@ export default function MissionTimer({
181178 ) }
182179 </ button >
183180 </ Tooltip . Trigger >
184- < Tooltip . Portal key = { isTooltipOpen ? "open" : "close" } >
185- < MotionTooltipContent
186- key = { isTooltipOpen ? "open" : "close" }
187- initial = { { y : - 7 } }
188- animate = { {
189- y : [ 0 , - 7 , 0 ] ,
190- } }
191- exit = { { y : - 7 } }
192- transition = { {
193- duration : 1.5 ,
194- repeat : Infinity ,
195- ease : "easeInOut" ,
196- repeatType : "loop" ,
197- } }
198- className = "select-none rounded-[8px] bg-white px-[15px] py-2 text-[15px] leading-none text-violet11 shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity] data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade"
181+ < Tooltip . Portal >
182+ < Tooltip . Content
183+ className = "select-none rounded-[8px] bg-white px-[15px] py-2 text-[15px] leading-none text-violet11 shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity] data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade animate-bounce"
199184 sideOffset = { 5 }
200185 >
201186 < p className = "t-p-14-sb text-blue-500" > 시작</ p >
202- < Tooltip . Arrow className = "fill-white" />
203- </ MotionTooltipContent >
187+ < Tooltip . Arrow className = "fill-white mt-[-1px] " />
188+ </ Tooltip . Content >
204189 </ Tooltip . Portal >
205190 </ Tooltip . Root >
206191 </ Tooltip . Provider >
0 commit comments