-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
76095d5
to
ad2fda5
Compare
Sorry, this PR now needs rebase |
ad2fda5
to
b8c4593
Compare
Sure, no problem. I've rebased against |
|
||
handleMouseDownClearButton = event => { | ||
const handleMouseDownClearButton = useCallback(event => { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
b8c4593
to
ebbbe04
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Convert ResettableTextField component to useStyles. #3453