Skip to content
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

fix(dropdown) : 드롭다운 외부클릭 시 닫기 기능을 추가합니다. #139

Merged
merged 5 commits into from
Mar 2, 2024

Conversation

caseBread
Copy link
Member

✅ PR 타입

  • Feature
  • Bug Fix

📝 개요

  • AS-IS : 드롭다운을 닫으려면 무조건 네모칸을 눌러야만 닫혔어요
  • TO-BE : 이제 드롭다운을 닫으려면 아무데나 클릭해도 닫혀요

💽 작업 사항

  • 드롭다운 닫기기능을 위한 컴포넌트를 추가

onClose: () => void;
};

const Popover: React.FC<TProps> = ({ className, children, onClose }) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

컴포넌트 props 타이핑이 컴포넌트마다 조금씩 상이해서, 컨벤션을 정해도 좋겠네요🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아니 체다 저 멘션도 안걸었는데 작업한지 어케 아신건지 ㅋㅋㅋㅋ 칼리뷰 정말 감사합니다 🥹🙇‍♂️

props 타이핑이 React.FC<TProps> 요부분이죠?

저거 회사컨벤션이라 무의식중에 사용된것 같아요😅

심플썸네일에서 컨벤션이 따로 없지만, 심플썸네일에서 자주쓰는 방식으로 변경해두겠슴다!
추후 컨벤션을 정해봐도 좋을것같아요

@caseBread caseBread merged commit 76e4081 into develop Mar 2, 2024
1 check passed
@caseBread caseBread mentioned this pull request Mar 2, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants