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

[docs][joy] Build TS versions for Checkbox component demos #36381

Merged
merged 7 commits into from
Mar 2, 2023

Conversation

sai6855
Copy link
Contributor

@sai6855 sai6855 commented Mar 1, 2023

part of #36367

@mui-bot
Copy link

mui-bot commented Mar 1, 2023

Netlify deploy preview

https://deploy-preview-36381--material-ui.netlify.app/

Bundle size report

No bundle size changes

Generated by 🚫 dangerJS against 2f77aeb

@zannager zannager added component: checkbox This is the name of the generic UI component, not the React module! package: joy-ui Specific to @mui/joy labels Mar 1, 2023
@zannager zannager requested a review from hbjORbj March 1, 2023 10:53
@sai6855 sai6855 marked this pull request as draft March 1, 2023 10:58
@hbjORbj hbjORbj changed the title [Checkbox][Joy] Typescript demo checkbox [docs][joy] Build TS versions for Checkbox component demos Mar 1, 2023
@hbjORbj hbjORbj added the docs Improvements or additions to the documentation label Mar 1, 2023
@sai6855 sai6855 marked this pull request as ready for review March 1, 2023 12:42
opacity: 0.32,
},
}
: undefined,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

was getting below typescript error if sx is {} hence changed to undefined. Not entirely sure why it worked though
Screenshot 2023-03-01 at 6 06 03 PM

checked={value.includes(item)}
color="neutral"
variant={value.includes(item) ? 'outlined' : 'plain'}
onChange={(event) => {
Copy link
Member

Choose a reason for hiding this comment

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

Type needed

label={item}
checked={value.includes(item)}
variant={value.includes(item) ? 'soft' : 'outlined'}
onChange={(event) => {
Copy link
Member

Choose a reason for hiding this comment

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

Type needed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

event type would be inferred right, any reason why we would need to add type explicitly?

Copy link
Member

Choose a reason for hiding this comment

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

Because I want to keep consistency throughout Joy TS demos.

@sai6855
Copy link
Contributor Author

sai6855 commented Mar 1, 2023

@hbjORbj added types as suggested in this commit (2f77aeb)

Copy link
Member

@hbjORbj hbjORbj left a comment

Choose a reason for hiding this comment

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

LGTM!

@hbjORbj hbjORbj merged commit 0bfbb3e into mui:master Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: checkbox This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants