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] Add classNames TS demo #17771

Merged
merged 9 commits into from
Oct 8, 2019
Merged

[docs] Add classNames TS demo #17771

merged 9 commits into from
Oct 8, 2019

Conversation

lksilva
Copy link
Contributor

@lksilva lksilva commented Oct 7, 2019

No description provided.

@lksilva lksilva changed the title Add classNames demos in ts [docs] Add classNames demos in ts Oct 7, 2019
@mui-pr-bot
Copy link

mui-pr-bot commented Oct 7, 2019

No bundle size changes comparing 4aea24a...17d2b23

Generated by 🚫 dangerJS against 17d2b23

@lksilva
Copy link
Contributor Author

lksilva commented Oct 7, 2019

Sorry but I don't understand why test_types is failing, can someone help me?

@eps1lon eps1lon added docs Improvements or additions to the documentation typescript labels Oct 7, 2019
@eps1lon eps1lon changed the title [docs] Add classNames demos in ts [docs] Add classNames TS demo Oct 7, 2019
eps1lon
eps1lon previously requested changes Oct 7, 2019
Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

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

Thanks for working on this. Just got a minor nitpick.

docs/src/pages/customization/components/ClassNames.js Outdated Show resolved Hide resolved
@eps1lon eps1lon mentioned this pull request Oct 7, 2019
@merceyz
Copy link
Member

merceyz commented Oct 7, 2019

Sorry but I don't understand why test_types is failing, can someone help me?

The javascript version is generated automatically using yarn docs:typescript:formatted, run that and commit the result and it will stop complaining

);
}

export default withStyles(styles)(ClassNames);
Copy link
Member

Choose a reason for hiding this comment

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

Prefer using makeStyles over withStyles

@joshwooding
Copy link
Member

@oliviertassinari Doesn’t the withStyles -> makeStyles need to happen first?

@oliviertassinari
Copy link
Member

oliviertassinari commented Oct 8, 2019

@joshwooding I don't think it's important if we move forward with #16947. I'm happy to see the TypeScript migration.

@eps1lon eps1lon merged commit 7971561 into mui:master Oct 8, 2019
@eps1lon
Copy link
Member

eps1lon commented Oct 8, 2019

@lksilva Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants