-
Notifications
You must be signed in to change notification settings - Fork 1
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] 공통 모달 퍼블리싱 수정 #75
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.
고생하셨습니다.! 따봉 🥇
} | ||
${({ isHover, theme }) => | ||
isHover && | ||
` |
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.
css 를 써보는 것은 어떨까요~?
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.
아 css안써도 되길래 그냥 했는데 정렬이 안되는군요 해당 사항 반영했습니다! 감사합니당
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.
이게,, 큰 기능이 없는거라 단순해보일 순 있어도,, 해본 사람 입장으로서 대가리 빠지는 부분인걸 아는데 ㅠㅠ 제가 싸놓은 똥을 이렇게 잘 수습해주셔서 너무너무너무 죄송하고 고생 많으셨습니다아 증맬루,, 🥲 성희 고생 너무 많았어요!! LGTM 입니다 💜
src/assets/svg/SettingCheck1.svg
Outdated
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.
아잇 아닙니다 넘 잘한다 우리 지민이 💜
}; | ||
interface SettingCheckBtnProps { | ||
size: 'small' | 'big'; | ||
type: 'complete' | 'check' | 'done' | 'progress' | 'xBtn'; |
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.
동일한 스타일 속성을 가진 버튼들을 하나로 합쳐서 type으로 아이콘만 변경해주었군요! 다 다른 svg 파일을 가져오기 어려울 것 같아 여러 파일들로 뺐는데 이렇게 하니 훨신 편할 것 같네요,, 정말 고생 많으셨습니다.. 👍
const IconComponent = settingIconMap[type]; | ||
|
||
const isFill = type === 'progress'; | ||
|
||
const StyledSettingCheckIcon = styled(IconComponent)<{ size: string }>` | ||
${({ size }) => (size === 'small' ? smallIcon : bigIcon)}; |
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.
헉 진짜 깔끔하다 👍 👍 굳굳
작업 내용 🧑💻
알게된 점 🚀
이렇게 이미지를 선언하고
const IconComponent = settingIconMap[type];
변수로 선언해서위처럼 IconComponent를 동적으로 아이콘을 선택해서 StyledSettingCheck2Icon으로 스타일링한 후 렌더링할 수 있음을 알게 되었습니다.
리뷰 요구사항 💬
관련 이슈
close #65
스크린샷 (선택)