mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ESlint: React fixes part 1 (#29062)
* Eslint: allign with latest grafana-eslint-config * fix ts * Fix react/jsx-key * Fix react/no-children-prop * Fix react/jsx-no-target-blank
This commit is contained in:
@@ -287,7 +287,7 @@ class PluginPage extends PureComponent<Props, State> {
|
||||
{info.links.map(link => {
|
||||
return (
|
||||
<li key={link.url}>
|
||||
<a href={link.url} className="external-link" target="_blank" rel="noopener">
|
||||
<a href={link.url} className="external-link" target="_blank" rel="noreferrer noopener">
|
||||
{link.name}
|
||||
</a>
|
||||
</li>
|
||||
@@ -346,16 +346,12 @@ class PluginPage extends PureComponent<Props, State> {
|
||||
<div className="sidebar-container">
|
||||
<div className="sidebar-content">
|
||||
{plugin.loadError && (
|
||||
<Alert
|
||||
severity={AppNotificationSeverity.Error}
|
||||
title="Error Loading Plugin"
|
||||
children={
|
||||
<>
|
||||
Check the server startup logs for more information. <br />
|
||||
If this plugin was loaded from git, make sure it was compiled.
|
||||
</>
|
||||
}
|
||||
/>
|
||||
<Alert severity={AppNotificationSeverity.Error} title="Error Loading Plugin">
|
||||
<>
|
||||
Check the server startup logs for more information. <br />
|
||||
If this plugin was loaded from git, make sure it was compiled.
|
||||
</>
|
||||
</Alert>
|
||||
)}
|
||||
{this.renderPluginNotice()}
|
||||
{this.renderBody()}
|
||||
|
||||
Reference in New Issue
Block a user