-
Notifications
You must be signed in to change notification settings - Fork 3
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
Refactor: 커피챗 오픈/수정 페이지 변경사항 적용 #1702
Conversation
- chip -> dropwdown
- chip -> PC: dropdown, MO: bottomsheet 으로 변경
- MO에서 dropdown -> bottomsheet 으로 변경
|
🚀 프리뷰 배포 확인하기 🚀 |
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.
👍 다른 사람 코드 파악해서 리팩토링하기 어려웠을 텐데, 넘 잘한 것 같습니다!
useEffect(() => { | ||
if (open) { | ||
document.body.style.overflow = 'hidden'; | ||
} else { | ||
document.body.style.overflow = ''; | ||
} | ||
|
||
return () => { | ||
document.body.style.overflow = ''; | ||
}; | ||
}, [open]); |
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.
q
요기 돔을 직접 조작하는 코드같은데, 이렇게 사용한 이유가 있는지 궁금해요!
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.
a
요기는 BottomSheet가 열리면 뒤 배경이 스크롤되지 않도록 추가해줬습니다!
🤫 쉿, 나한테만 말해줘요. 이슈넘버
🧐 어떤 것을 변경했어요~?
🤔 그렇다면, 어떻게 구현했어요~?
mds의 BottomSheet 컴포넌트가 없어서
BottomSheetSelect
를 구현했습니다.❤️🔥 당신이 생각하는 PR포인트, 내겐 매력포인트.
📸 스크린샷, 없으면 이것 참,, 섭섭한데요?
[PC]
[MO]