-
Notifications
You must be signed in to change notification settings - Fork 2
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
[노철] - 태그 컴포넌트 구현 #14
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.
컴포넌트 잘 짜셨네요 !! 입력 태그까지,,, 👍🏻 자세한 PR도 너무 좋습니다 !! 고생 많으셨습니다 😎 LATM ~~
src/components/Tag/Tag.tsx
Outdated
}: TagProps) => { | ||
return ( | ||
<div | ||
className={`tag tag--${color} ${onClick ? 'pointer' : ''}`} |
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.
onClick
이 없을 때는 className을 추가 안해줘도 되니 &&
연산자를 사용해도 좋을 것 같아요 ! ㅎㅎㅎ
className={`tag tag--${color} ${onClick ? 'pointer' : ''}`} | |
className={`tag tag--${color} ${onClick && 'pointer'}`} |
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.
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.
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.
다 이유가 있었네요 ㅎㅎㅎ 👍혜수님까지 이야기해보고 넣는게 좋을것 같네요
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.
저는 classNames 쓰는게 좋을 것 같습니다
📌 이슈 번호
close #5
🚀 구현 내용
태그 컴포넌트
태그 컴포넌트 입니다.
인풋 태그 컴포넌트
태그를 새로 입력할 수 있는 InputTag 컴포넌트입니다.
인풋 태그는 배경색이 orange로 고정입니다.
📘 참고 사항
첫 pr이라 코드외에도 컨벤션이 안맞는 부분이 있을 수 있습니다. 알려주시면 수정할게요