-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ feat: Modal 컴포넌트 및 스토리북 작성 #33
Conversation
🚀 Storybook Preview 보러가기: https://65a6c73d536a3c43b7c5c9bb-wyewsahbqy.chromatic.com/ |
아 감사합니다!
굳이 삭제 안해도 괜찮을 것 같아요! |
사실 기본 모달 컴포넌트의 background 영역은 클릭하면 닫히도록 적용이 되어있긴 한데.. 모달을 사용하는 측인 스토리북 예시 코드에도 적용을 해 놓을지 고민이 되었어요!!
맞습니다.. 꼼꼼하게 봐주셔서 감사해요!! 😊👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve 합니다!
🧩 이슈 번호
✅ 작업 사항
👩💻 공유 포인트 및 논의 사항
사용법
useModal
훅을 선언해요.Modal
컴포넌트에 훅의 모든 인자를 전달해요.children
으로는 모달 내부에서 그려야 할 컨텐츠를 표현해요.isOpen
,open
,close
등의 값을 가지고 모달을 조작해요.storyName 관련
스토리북을 실행하다가 다음 경고 메시지를 확인했는데요, 찾아보니 deprecated 되었다고 해서 name 변경했어요.
테스트용 페이지 관련
왠지 모달 컴포넌트여서 스토리북 외에도 실제 리액트 앱에서도 테스트해봐야할 것 같아서
/modal-test
라우팅 경로에 임시로 작성해보았는데요.. 이상은 없는 것 같아서 삭제하고 머지하는게 좋으려나요??실행 결과