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] Convert ResettableTextField component to useStyles #3579

Merged
merged 6 commits into from
Sep 2, 2019

Conversation

jaytula
Copy link
Contributor

@jaytula jaytula commented Aug 22, 2019

Convert ResettableTextField component to useStyles. #3453

@jaytula jaytula changed the title Convert ResettableTextField component to useStyles [RFR] Convert ResettableTextField component to useStyles Aug 22, 2019
Copy link
Collaborator

@djhi djhi left a comment

Choose a reason for hiding this comment

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

👍

@djhi djhi added this to the 3.0.0 milestone Aug 23, 2019
@jaytula jaytula force-pushed the usestyles-resettabletextfield branch from 76095d5 to ad2fda5 Compare August 28, 2019 16:16
@fzaninotto
Copy link
Member

Sorry, this PR now needs rebase

@jaytula jaytula force-pushed the usestyles-resettabletextfield branch from ad2fda5 to b8c4593 Compare August 30, 2019 15:38
@jaytula
Copy link
Contributor Author

jaytula commented Aug 30, 2019

Sure, no problem. I've rebased against next


handleMouseDownClearButton = event => {
const handleMouseDownClearButton = useCallback(event => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

If it doesn't use anything from the component itself (such as state or props), you can even declare this function outside of the component and won't need the useCallback at all

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, thanks! I've declared it outside the component.

@jaytula jaytula force-pushed the usestyles-resettabletextfield branch from b8c4593 to ebbbe04 Compare September 2, 2019 16:38
Copy link
Collaborator

@djhi djhi left a comment

Choose a reason for hiding this comment

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

Thanks!

@djhi djhi merged commit 48ce290 into marmelab:next Sep 2, 2019
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.

3 participants