-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Fix(ui): Fix issue details warnings #8745
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
Conversation
774a2fc to
2c3f210
Compare
| import ReactDOM from 'react-dom'; | ||
| import ReactDOMServer from 'react-dom/server'; | ||
|
|
||
| export default function(node) { |
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.
Let's add componentToString as a name for this function (there'll be an eslint rule for this).
| let {date, dateGlobal, environment, title} = this.props; | ||
|
|
||
| return componentToString( | ||
| return ReactDOMServer.renderToStaticMarkup( |
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.
Let's keep componentToString here since we've updated its definition to use renderToStaticMarkup
| {date ? ( | ||
| <dd key={1}> | ||
| <Tooltip title={this.getTooltipTitle} tooltipOptions={{html: true}}> | ||
| <Tooltip title={this.getTooltipTitle()} tooltipOptions={{html: true}}> |
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.
👀
2c3f210 to
3b3c659
Compare
3b3c659 to
27c3913
Compare
titleon tag