-
Notifications
You must be signed in to change notification settings - Fork 0
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/BAR-250] 폴더 삭제 에러 해결 #79
Conversation
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.
@dmswl98
고생하셨습니다 ㅎㅎ
src/components/Button/style.css.ts
Outdated
':disabled': { | ||
cursor: 'not-allowed', | ||
}, |
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.
보통 not-allowed 처리 안하지 않나요?? 디자인쪽 니즈인가요?
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.
7294d1f 하는게 더 명확해보일거라 생각했는데 실무에서는 잘 모르겠네요ㅎㅎ
src/components/Card/index.tsx
Outdated
return ( | ||
<> | ||
{!defaultIsVisibleMenu ? ( | ||
isVisibleMenu && <div className={styles.menu}>{children}</div> | ||
) : ( | ||
<div className={styles.menu}>{children}</div> | ||
)} | ||
</> | ||
); |
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.
if (!defaultIsVisibleMenu && !isVisibleMenu) return null;
return <div></div>
해당 형태가 더 깔끔할 것 같아요!
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.
해당 부분 이렇게 수정해두었습니다~
return (
<>
{(defaultIsVisibleMenu || isVisibleMenu) && (
<div className={styles.menu}>{children}</div>
)}
</>
);
@@ -16,10 +16,11 @@ interface CardProps { | |||
| 'grey' | |||
| 'white'; | |||
className?: string; | |||
defaultIsVisibleMenu?: boolean; |
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.
boolean 타입의 변수명이 아래쪽에서 is로 시작해서 이 변수명도 is로 시작해도 좋을 것 같아요
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.
고것도 고민해봤는데 default가 중간에 들어가면 네이밍이 어색할 거 같았고 IsVisibleMenu가 뭉쳐있어야 이해하기 쉬울 것 같아 요렇게 해두었습니다..!
onMouseEnter={() => { | ||
!defaultIsVisibleMenu && onShow(); | ||
}} | ||
onMouseLeave={() => { | ||
!defaultIsVisibleMenu && onHide(); | ||
}} |
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.
여기서 쓰이는 조건문 필요한가요?
Summary
To Reviewers
How To Test