-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[No QA] Fix various propType warnings #2146
Conversation
I think this looks good, just asked @Jag96 to double check me though. |
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.
Just one question, otherwise LGTM
secondAvatar: { | ||
backgroundColor: themeColors.sidebarHover, | ||
borderColor: themeColors.sidebarHover, | ||
}, | ||
}} | ||
} : undefined} |
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.
Just wondering, what was the warning here? Having undefined
here seems less clean
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.
We're validating that an Object
is being passed, but using a short circuit so the order of operations will literally end up returning false
. I guess another (perhaps more clear) way to do this would be
styles={(hovered && !optionIsFocused && styles.someStyle) || {}}
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.
also asked Rajat to fix this up in another PR
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Details
Fixed Issues
Fixes No Issue just many propTypes warnings making it hard to debug mobile
Tests / QA Steps
No QA
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android