-
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
Switch Demo에 MoaSwtich Component 조작 UI 개발 #55
Conversation
Switch component 옆에 보이는 text에 대한 prop 이름을 name에서 label로 변경 (쓰이는 목적을 기준으로 props이름이 name은 적당하지 않다고 판단.)
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.
댓글 확인 부탁드려용! :)
고생하셨습니다+_+
src/lib/Switch/Demo.tsx
Outdated
import Typography from "@mui/material/Typography"; | ||
import MUISwitch from "@mui/material/Switch"; | ||
|
||
export function SwitchCompo(props: any) { |
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.
props를 사용하지 않는다면 비워도 괜찮을 것 같습니다
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.
혹시 switch에서는 uncontrolled state를 지원하지 않는건가요?
mui switch의 uncontrolled state에서는 defaultChecked를 지원하는데 따로 명시가 없어서 질문드립니다.
확인해보니 다른 컴포넌트도 uncontrolled state 미지원 상태이긴 하네요..
음 이부분은 제가 처음에 switch 컴포넌트를 개발한 사항이 아니라서 의도는 잘 모르겠습니다. 이슈로 남겨주세용 |
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.
uncontrolled 관련 이슈는 별도로 작성하였습니다.
추후 논의 결과에 따라 추가로 작업해야 할 것 같습니다.
Approve 드립니다~
Switch Demo에 MoaSwtich Component 조작 UI 개발