Skip to content

Commit

Permalink
feat: 평가 등록 전 confirm 창
Browse files Browse the repository at this point in the history
  • Loading branch information
llqqssttyy committed Oct 10, 2024
1 parent a5ec398 commit 99bd48b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ export default function EvaluationForm({ processId, applicantId, onClose }: Eval

const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();
submitNewEvaluation({ processId, applicantId, ...formState });

if (window.confirm('평가를 등록한 후에는 수정하거나 삭제할 수 없습니다.\n등록하시겠습니까?')) {

Check warning on line 61 in frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationForm/index.tsx

View workflow job for this annotation

GitHub Actions / run-test-pr-opened

Unexpected confirm
submitNewEvaluation({ processId, applicantId, ...formState });
}
};

return (
Expand Down

0 comments on commit 99bd48b

Please sign in to comment.