Skip to content

Commit

Permalink
fix: 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeHongDev committed Jul 11, 2024
1 parent 105a44e commit 69bf64f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const InterviewController = ({onSubmit, onQuit, onPass, disabled, info}: Intervi
return <div className="flex flex-row-reverse gap-3 p-3">
<Button color="success" onClick={onSubmit} isLoading={disabled}>
제출
{!isMobile ?? <Kbd keys={["command"]}>s</Kbd>}
{isMobile ? <></> :<Kbd keys={["command"]}>s</Kbd>}
</Button>

<Spacer x={1}/>
Expand All @@ -25,11 +25,11 @@ const InterviewController = ({onSubmit, onQuit, onPass, disabled, info}: Intervi

<Button color="danger" onClick={onPass} isLoading={disabled}>
패스
{!isMobile ??<Kbd keys={["command"]}>p</Kbd>}
{isMobile ? <></> : <Kbd keys={["command"]}>p</Kbd>}
</Button>
<Button onClick={onQuit}>
그만두기
{isMobile ?? <Kbd keys={["command"]}>q</Kbd>}
{isMobile ? <></> : <Kbd keys={["command"]}>q</Kbd>}
</Button>

{!info ?? <Button onClick={info} color={"warning"}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ const InterviewHistoryTable = () => {
</Button>
</DropdownTrigger>
<DropdownMenu>
<DropdownItem onClick={() => navigate(PATH.INTERVIEW_RESULT(item.interviewId))}>결과 보기</DropdownItem>
{item.interviewState === "PROGRESS" ? <DropdownItem onClick={() => navigate(PATH.INTERVIEW(item.interviewId))}>이어서 풀기</DropdownItem> : <></>}
<DropdownItem key={"result"} onClick={() => navigate(PATH.INTERVIEW_RESULT(item.interviewId))}>결과 보기</DropdownItem>
<DropdownItem key={"resolution"} onClick={() => navigate(PATH.INTERVIEW(item.interviewId))} isDisabled={item.interviewState !== "PROGRESS"}>이어서 풀기</DropdownItem>
</DropdownMenu>
</Dropdown>
)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/hooks/useMediaQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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])



Expand Down

0 comments on commit 69bf64f

Please sign in to comment.