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
Fix: also use custom private boost icon for detailed status #14471
Fix: also use custom private boost icon for detailed status #14471
Conversation
@@ -20,6 +20,7 @@ export default class IconButton extends React.PureComponent { | |||
style: PropTypes.object, | |||
activeStyle: PropTypes.object, | |||
disabled: PropTypes.bool, | |||
privat: PropTypes.bool, |
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.
You probably meant private
. And you really shouldn't pass this to shared IconButton component, there's a class name for that, I believe.
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.
No, private
is a reserved word in JS.
It's similar to passing disabled
as a class name. I believe this make the code structure more clear.
Because now custom icon is only used for I have seen ThibG's PR, but my PR is mainly for using custom private boost icon everywhere. |
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.
Sorry for the late review! I concur with @Sasha-Sorokin, privat
doesn't sound right. Also, I think it is far too specific to the boost icon to be part of IconButton
's attributes, and should use className
instead.
@Sasha-Sorokin @ThibG |
…#14471) * use custom private boost icon for detail status * only use className
…#14471) * use custom private boost icon for detail status * only use className
* use custom private boost icon for detail status * only use className
…#14471) * use custom private boost icon for detail status * only use className
#14380
If the custom icon for private boosts is accepted, it should be used everywhere.
By the way, this change can fix #14455