-
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
Feat: 버튼 컴포넌트 기본 작업 #17
Conversation
tsconfig.json에 moduleResolution: bundle -> node로 변경해서 해결
- postcss.config.mjs -> postcss.config.cjs로 변경 - tsconfig.json -> **/*.cjs 추가 - preview.ts -> import '../styles/tailwind.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.
리뷰 확인 부탁드릴게요!!
styles/tailwind.css
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.
globals.css가 tailwind.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.
@rai-95 성은님! 혹시 제거에서는 돌아가는데(ㅋㅋㅋㅋㅋ) 한번 확인 부탁드려도 될까요?
import { PropsWithChildren } from 'react'; | ||
import { ButtonContext } from '../modules/ButtonStateContext'; | ||
|
||
export interface IButtonMain extends PropsWithChildren, VariantProps<typeof buttonMainVariants> { |
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.
👍👍 좋습니다!
children 인터페이스 부분 통일하면 좋을거 같아요!
ButtonMain은 extends PropsWithChildren로 작성되어 있고 ButtonLabel은 children: React.ReactNode 로 다르게 작성된거 같아서요!
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.
@rai-95 헉!! 좋습니다 ㅎㅎㅎ 바로 바꾸겠습니다!
PropsWithChildren
으로 통일하면 좋을 것 같아요!
관련 이슈
#5
구현 내용