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:
@@ -26,9 +26,10 @@ export default class AppNotificationItem extends Component<Props> {
|
||||
<Alert
|
||||
severity={appNotification.severity}
|
||||
title={appNotification.title}
|
||||
children={appNotification.component || appNotification.text}
|
||||
onRemove={() => onClearNotification(appNotification.id)}
|
||||
/>
|
||||
>
|
||||
{appNotification.component || appNotification.text}
|
||||
</Alert>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -64,7 +64,7 @@ export class ErrorPage extends PureComponent<Props> {
|
||||
</p>
|
||||
<p>
|
||||
If the error persists, seek help on the{' '}
|
||||
<a href="https://community.grafana.com" target="_blank" className="error-link">
|
||||
<a href="https://community.grafana.com" target="_blank" rel="noreferrer" className="error-link">
|
||||
community site
|
||||
</a>
|
||||
.
|
||||
|
@@ -51,7 +51,7 @@ const Navigation = ({ children }: { children: NavModelItem[] }) => {
|
||||
|
||||
return (
|
||||
<nav>
|
||||
<SelectNav customCss="page-header__select-nav" children={children} />
|
||||
<SelectNav customCss="page-header__select-nav">{children}</SelectNav>
|
||||
<TabsBar className="page-header__tabs" hideBorder={true}>
|
||||
{children.map((child, index) => {
|
||||
return (
|
||||
@@ -147,7 +147,7 @@ export default class PageHeader extends React.Component<Props, any> {
|
||||
<div className="page-container">
|
||||
<div className="page-header">
|
||||
{this.renderHeaderTitle(main)}
|
||||
{children && children.length && <Navigation children={children} />}
|
||||
{children && children.length && <Navigation>{children}</Navigation>}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user