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][base] Drop component prop #37053

Merged
merged 1 commit into from
Apr 28, 2023
Merged

Conversation

hbjORbj
Copy link
Member

@hbjORbj hbjORbj commented Apr 27, 2023

No description provided.

@hbjORbj hbjORbj added breaking change component: switch This is the name of the generic UI component, not the React module! package: base-ui Specific to @mui/base labels Apr 27, 2023
@hbjORbj hbjORbj self-assigned this Apr 27, 2023
@mui-bot
Copy link

mui-bot commented Apr 27, 2023

Netlify deploy preview

Bundle size report

Details of bundle changes

Generated by 🚫 dangerJS against fed960e

@zannager zannager requested a review from mnajdova April 27, 2023 13:35
@hbjORbj hbjORbj requested review from michaldudak and removed request for mnajdova April 28, 2023 09:19
<Switch component={Root} {...label} />
<Switch component={Root} {...label} defaultChecked disabled />
<Switch component={Root} {...label} disabled />
<Switch<typeof Root>
Copy link
Member

Choose a reason for hiding this comment

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

The generic parameter is needed only when you want to use a prop that's available on the root slot. It's not the case here, so we can simplify and remove it. (x other places)

Copy link
Member Author

Choose a reason for hiding this comment

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

addressed

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 28, 2023
@hbjORbj hbjORbj enabled auto-merge (squash) April 28, 2023 13:36
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 28, 2023
@hbjORbj hbjORbj disabled auto-merge April 28, 2023 14:24
@hbjORbj hbjORbj merged commit f4a9347 into mui:master Apr 28, 2023
binh1298 pushed a commit to binh1298/material-ui that referenced this pull request May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change component: switch This is the name of the generic UI component, not the React module! package: base-ui Specific to @mui/base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants