Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✨ 작업 내용
💡 ModalProvider.jsx
현재 post/{id} 페이지에서 페이지를 삭제 한 후 삭제 완료 모달이 떠 있는 상태에서
모달 외부를 클릭하여 모달이 close 되게 만들면 list 페이지로 이동하지 않는 문제가 있습니다.
현재 modal을 사용하는 컴포넌트들에 영향을 주지 않게 만들기 위해 2번째 파라미터로 onModalClose를 전달 하도록 수정하였습니다.
따라서 기존에 작성했던 showModal 함수들은 수정하지 않아도 정상동작 합니다.
RollingPaperItemPage의 삭제완료 모달 호출하는 부분만 아래와 같이 수정하면 됩니다.
혹시 몰라서 제가 직접 수정은 안했습니다...
사용 방법
🔗 관련 이슈
Fixes #