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

[RFR] Refactor withStyles to useStyles for 10 components #3546

Merged
merged 3 commits into from
Aug 21, 2019

Conversation

jaytula
Copy link
Contributor

@jaytula jaytula commented Aug 20, 2019

Refactored components are: CreateButton, FormInput, ToolBar, Labeled, RadioButtonGroupInput, NotFound, BulkActionsToolbar, DatagridHeaderCell, DatagridLoading, SimpleList

This is for issue #3453 .

@jaytula jaytula changed the title Refactor withStyles to useStyles for 10 components RFR: Refactor withStyles to useStyles for 10 components Aug 20, 2019
@jaytula jaytula changed the title RFR: Refactor withStyles to useStyles for 10 components [RFR]: Refactor withStyles to useStyles for 10 components Aug 20, 2019
@jaytula jaytula changed the title [RFR]: Refactor withStyles to useStyles for 10 components [RFR] Refactor withStyles to useStyles for 10 components Aug 20, 2019
Copy link
Member

@fzaninotto fzaninotto left a comment

Choose a reason for hiding this comment

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

Neat! One component was already migrated in next though, you'll need to rebase.

packages/ra-ui-materialui/src/button/CreateButton.js Outdated Show resolved Hide resolved
packages/ra-ui-materialui/src/button/CreateButton.js Outdated Show resolved Hide resolved
@fzaninotto fzaninotto added this to the 3.0.0 milestone Aug 20, 2019
CreateButton, FormInput, ToolBar, Labeled,
RadioButtonGroupInput, NotFound, BulkActionsToolbar,
DatagridHeaderCell, DatagridLoading, SimpleList
Remove createStyles
Add classes prop to allow overrides
Remove enhance where only one HOC and just inline it
@jaytula jaytula force-pushed the next-withstyles-to-makestyles branch from f147ada to 7e12a00 Compare August 20, 2019 22:32
@jaytula
Copy link
Contributor Author

jaytula commented Aug 21, 2019

I've made requested changes. Thank you again for reviewing and providing instructive advice on how to fix the shortcomings. Looking forward to a re-review. Thanks!

@fzaninotto fzaninotto merged commit e979d7a into marmelab:next Aug 21, 2019
@fzaninotto
Copy link
Member

Thanks!

@jaytula jaytula deleted the next-withstyles-to-makestyles branch August 22, 2019 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants