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

Move Tooltip inside RecorderIcon. #839

Merged
merged 2 commits into from
Dec 2, 2020
Merged

Move Tooltip inside RecorderIcon. #839

merged 2 commits into from
Dec 2, 2020

Conversation

imnasnainaec
Copy link
Collaborator

@imnasnainaec imnasnainaec commented Dec 2, 2020

Replaces #838.

The ref property is not implicit with a functional component as it is for a traditional component.
Thus, Tooltip cannot be used around a functional component, because it tries to pass its ref to its children.
Previously in AudioRecorder, we had Tooltip wrapped around the functional component RecorderIcon.
To fix the associated warnings, this pr moves Tooltip to within RecorderIcon.
Should we ever need tooltip around a functional component: https://material-ui.com/guides/composition/#caveat-with-refs


This change is Reviewable

@imnasnainaec imnasnainaec added refactor maintenance Issue that makes it difficult to maintain the software or to upgrade installations post-release. audio labels Dec 2, 2020
@imnasnainaec imnasnainaec self-assigned this Dec 2, 2020
Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@imnasnainaec imnasnainaec merged commit 41205b9 into master Dec 2, 2020
@imnasnainaec imnasnainaec deleted the move-tooltip branch December 2, 2020 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio maintenance Issue that makes it difficult to maintain the software or to upgrade installations post-release. refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants