[Feat/#24] 드롭다운 공통 컴포넌트 생성 #25
Merged
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.
📌 관련 이슈번호
🎟️ PR 유형
어떤 변경 사항이 있나요?
Check List
✅ Key Changes
모바일 뷰에서 사용할 드롭다운 공통 컴포넌트를 생성했습니다
📢 To Reviewers
이게 최선의 방법인지는 모르겠는데... 제가 생각하기에 드롭다운 내에서 확장성 있는 방향이라고 생각해서 이렇게 작업했습니다! 혹시 다른 더 좋은 방법 있으면... 코드리뷰 많이 남겨주세요
드롭다운 자체는 드롭다운 내 요소를 선택하거나 외부를 클릭하면 닫게 만들어두었습니다!
사용법 자체가 워낙 어려워서 mobile 페이지에 예시 두었습니다!
사용법을 간단하게 설명하면,
const { showDropdown, hideDropdown, isDropdownVisible } = useDropdown();으로 커스텀 훅에서 함수 가져오기드롭다운 컴포넌트 사용법
코드를 조금 설명해두면
📸 스크린샷