-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 지원 시간 종료 시 지원서 제출 막는 모달창 생성 * fix: 지원 기간 지나면 지원서 버튼 눌러도 제출 안 되도록 수정 * fix: 모달 버튼 디자인 수정
- Loading branch information
1 parent
f6d6477
commit 6f311ba
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { forwardRef, type KeyboardEvent } from 'react'; | ||
|
||
import Dialog from '@components/Dialog'; | ||
|
||
import { buttonInside, buttonOutside, buttonWrapper, mainText } from '../style.css'; | ||
|
||
const PreventApplyDialog = forwardRef<HTMLDialogElement>((_, ref) => { | ||
const handlePreventESCKeyPress = (e: KeyboardEvent<HTMLDialogElement>) => { | ||
if (e.key === 'Escape') e.preventDefault(); | ||
}; | ||
|
||
return ( | ||
<Dialog ref={ref} onKeyDown={handlePreventESCKeyPress}> | ||
<p className={mainText}>지원서 제출 기한이 지났어요.</p> | ||
<form method="dialog" className={`${buttonWrapper} ${buttonOutside.solid}`}> | ||
<button className={buttonInside.solid}>확인</button> | ||
</form> | ||
</Dialog> | ||
); | ||
}); | ||
|
||
PreventApplyDialog.displayName = 'PreventApplyDialog'; | ||
|
||
export default PreventApplyDialog; |