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.
🙋 Summary (요약)
🤔 Describe your Change (변경사항)
Modal 컴포넌트 구현
다양한 형태로 모달이 활용되고 있어, Modal 하위의 컴포넌트들을 독립적으로 선언 후
상위 컴포넌트에서 조립하여 활용할 수 있는 방식으로 구현하였습니다.
Modal 컴포넌트에는 Title과 Button 컴포넌트가 존재합니다.
Title에는 모달의 상단에 들어가는 필수 텍스트를 나타내며, 텍스트 내 줄바꿈은
\n
로 표시해주시면 됩니다.Button은 기본 버튼과 동일한 기능을 하는 스타일링된 버튼입니다.
Modal에 onClose 인자로 Modal 우측 상단의 닫힘 버튼에 대한 클릭 이벤트 핸들러를 전달할 수 있습니다.
Usage
참고
저 또한 공통컴포넌트 제작 내용이지만 기존에 홀로 작업하던 브랜치명으로 그대로 PR 올립니다.
다른 분들도 참고하여 작업 부탁드려요!!
🔗 Issue number and link (참고)