Skip to content
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

Merged
merged 7 commits into from
Aug 28, 2023
Merged

Conversation

HY0118
Copy link
Collaborator

@HY0118 HY0118 commented Aug 28, 2023

Switch Demo에 MoaSwtich Component 조작 UI 개발

image

Switch component 옆에 보이는 text에 대한 prop 이름을 name에서 label로 변경
(쓰이는 목적을 기준으로 props이름이 name은 적당하지 않다고 판단.)
@HY0118 HY0118 requested review from kh1012 and bce0404 August 28, 2023 02:06
@HY0118 HY0118 self-assigned this Aug 28, 2023
Copy link
Collaborator

@kh1012 kh1012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

댓글 확인 부탁드려용! :)
고생하셨습니다+_+

import Typography from "@mui/material/Typography";
import MUISwitch from "@mui/material/Switch";

export function SwitchCompo(props: any) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

props를 사용하지 않는다면 비워도 괜찮을 것 같습니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵 불필요한 코드라 제거하였습니다.

@HY0118 HY0118 changed the title Doc dev switch Switch Demo에 MoaSwtich Component 조작 UI 개발 Aug 28, 2023
Copy link
Collaborator

@bce0404 bce0404 left a 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 미지원 상태이긴 하네요..

@HY0118
Copy link
Collaborator Author

HY0118 commented Aug 28, 2023

혹시 switch에서는 uncontrolled state를 지원하지 않는건가요? mui switch의 uncontrolled state에서는 defaultChecked를 지원하는데 따로 명시가 없어서 질문드립니다.

확인해보니 다른 컴포넌트도 uncontrolled state 미지원 상태이긴 하네요..

음 이부분은 제가 처음에 switch 컴포넌트를 개발한 사항이 아니라서 의도는 잘 모르겠습니다. 이슈로 남겨주세용

@HY0118 HY0118 added the documentation Improvements or additions to documentation label Aug 28, 2023
Copy link
Collaborator

@bce0404 bce0404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uncontrolled 관련 이슈는 별도로 작성하였습니다.
추후 논의 결과에 따라 추가로 작업해야 할 것 같습니다.

Approve 드립니다~

@HY0118 HY0118 merged commit 90fb8a7 into dev Aug 28, 2023
@HY0118 HY0118 deleted the doc_dev_Switch branch August 28, 2023 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants