"stylelint.validate": ["css", "scss"]
을 추가하면 정상적으로 작동한다.2022-05-06
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.stylelint":true
},
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
fillRule="evenodd"
clipRule="evenodd"
fill='currentcolor'
d="M22 12C22 17.5228 ..."
/>
</svg>
viewBox="x좌표 y좌표 width비율 height비율
classnames
와 css module
을 사용하면서 무리 없이 사용하다가 styles 뒤에 클래스 명을설정해주는 부분에서 막혔다😭{COLOR_VALUE.map((color) => (
<button {/* 이 부분에 color를 입력하길 원함 */}
className={cn(styles.colorChip, styles.(color)}
type="button"
aria-label="color button"
data-color={color}
onClick={choiceColor}
key={`${color}-color`}
/>
))}
뒤에 정말 많은 방법으로 붙여보려 노력했지만,.. 결국 못찾아서 팀원 분에게 여쭤보았다...
친절하신 (천재만재)팀원님이 해결 방법을 제시해주셨다 !!!!🎉
styles[color]
이렇게 대괄호를 이용해서 안에 변수를 적어주면 된다.
이렇게 또 하나의 지식을 얻었지만, 구글링하는 방법을 좀.. 바꿔봐야겠다.😵
classnames - npm
: classnames 사용이 헷갈릴 때 들어가서 읽어보기
<div className={cn(styles.wrapButtons)}>
<BasicButton SVGIcon={FolderIcon} outline={false} />
<BasicButton SVGIcon={FlagIcon} outline={false} />
<BasicButton SVGIcon={MoonIcon} outline={false} />
</div>
export default function BasicButton({ SVGIcon, outline, onClick }) {
return (
<button className={cn(styles.basicButton, { [styles.outline]: outline })} type="button" onClick={onClick}>
<div className={cn(styles.svgWrap)}>
<SVGIcon />
</div>
</button>
);
}
svg
로 설정했다.<SVGIcon />
이렇게 태그 형태로 작성하지 않고, {SVGIcon}
변수 넣듯 작성했다😓(천재만재) 팀원 분이 또.. 도와주셨다.😭 죄송합니다죄송합니다암쿠라잉
git push <저장소명> <브랜치명>
git push -u <저장소명> <브랜치명>
-u
옵션을 이용해서 git push
명령어를 날린 적이 있을 경우 그냥 git push
해주면 된다.pull request
해주셨다.수정한 코드가 있으니 branch를 가져가서 검토 후 병합해달라는 의미
이후 merge pull request
로 코드 변경내용을 확인한 후 merge를 결정했다.
깃허브는 나의 적
그래도... 친해져야 하므로 엉엉 울면서 알아보고 있다.
깃허브에 올릴 때마다 눈을 부릅뜨고 방법을 찾아본다...
얼른 깃허브에 대해 공부해야겠다. 이만 총총