diff --git a/frontend/src/components/InterviewController/InterviewController.tsx b/frontend/src/components/InterviewController/InterviewController.tsx index 497bde9..4ed6f34 100644 --- a/frontend/src/components/InterviewController/InterviewController.tsx +++ b/frontend/src/components/InterviewController/InterviewController.tsx @@ -16,7 +16,7 @@ const InterviewController = ({onSubmit, onQuit, onPass, disabled, info}: Intervi return
@@ -25,11 +25,11 @@ const InterviewController = ({onSubmit, onQuit, onPass, disabled, info}: Intervi {!info ?? - navigate(PATH.INTERVIEW_RESULT(item.interviewId))}>결과 보기 - {item.interviewState === "PROGRESS" ? navigate(PATH.INTERVIEW(item.interviewId))}>이어서 풀기 : <>} + navigate(PATH.INTERVIEW_RESULT(item.interviewId))}>결과 보기 + navigate(PATH.INTERVIEW(item.interviewId))} isDisabled={item.interviewState !== "PROGRESS"}>이어서 풀기 ) diff --git a/frontend/src/hooks/useMediaQuery.ts b/frontend/src/hooks/useMediaQuery.ts index a195f89..88e709c 100644 --- a/frontend/src/hooks/useMediaQuery.ts +++ b/frontend/src/hooks/useMediaQuery.ts @@ -19,7 +19,7 @@ export const useMediaQuery = () => { }, []); - const modalStatement = useMemo<"bottom-center" | "top">(() => matches ? "bottom-center" : "top", []) + const modalStatement = useMemo<"bottom-center" | "top">(() => matches ? "bottom-center" : "top", [matches])