diff --git a/public/app/features/dashboard/dashgrid/DashboardPanel.tsx b/public/app/features/dashboard/dashgrid/DashboardPanel.tsx index 808c861f269..dd96c7b698e 100644 --- a/public/app/features/dashboard/dashgrid/DashboardPanel.tsx +++ b/public/app/features/dashboard/dashgrid/DashboardPanel.tsx @@ -1,4 +1,4 @@ -import React, { PureComponent } from 'react'; +import React, { PureComponent } from 'react'; import config from 'app/core/config'; import { PanelModel } from '../panel_model'; import { DashboardModel } from '../dashboard_model'; @@ -122,10 +122,8 @@ export class DashboardPanel extends PureComponent {
{this.props.panel.isEditing && ( diff --git a/public/app/features/dashboard/dashgrid/PanelChrome.tsx b/public/app/features/dashboard/dashgrid/PanelChrome.tsx index 818dbb6d155..ce000342b9f 100644 --- a/public/app/features/dashboard/dashgrid/PanelChrome.tsx +++ b/public/app/features/dashboard/dashgrid/PanelChrome.tsx @@ -13,13 +13,11 @@ import { PanelHeaderMenu } from './PanelHeader/PanelHeaderMenu'; import { PanelModel } from '../panel_model'; import { DashboardModel } from '../dashboard_model'; import { TimeRange, PanelProps } from 'app/types'; -import { PanelHeaderGetMenuAdditional } from 'app/types/panel'; export interface Props { panel: PanelModel; dashboard: DashboardModel; component: ComponentClass; - getMenuAdditional?: PanelHeaderGetMenuAdditional; } export interface State { diff --git a/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeader.tsx b/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeader.tsx index ba5511014f2..ca4a6fe733c 100644 --- a/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeader.tsx +++ b/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeader.tsx @@ -1,11 +1,11 @@ import React, { PureComponent } from 'react'; import classNames from 'classnames'; -interface PanelHeaderProps { +interface Props { title: string; } -export class PanelHeader extends PureComponent { +export class PanelHeader extends PureComponent { render() { const isFullscreen = false; const isLoading = false; diff --git a/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderMenu.tsx b/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderMenu.tsx index dfb83be9d1d..407f3c7ad1c 100644 --- a/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderMenu.tsx +++ b/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderMenu.tsx @@ -1,19 +1,17 @@ -import React, { PureComponent } from 'react'; +import React, { PureComponent } from 'react'; import { DashboardModel } from 'app/features/dashboard/dashboard_model'; import { PanelModel } from 'app/features/dashboard/panel_model'; import { PanelHeaderMenuItem } from './PanelHeaderMenuItem'; -import { PanelHeaderMenuItemProps } from 'app/types/panel'; import { getPanelMenu } from 'app/features/dashboard/utils/panel_menu'; +import { PanelMenuItem } from 'app/types/panel'; -export interface PanelHeaderMenuProps { +export interface Props { panel: PanelModel; dashboard: DashboardModel; - additionalMenuItems?: PanelHeaderMenuItemProps[]; - additionalSubMenuItems?: PanelHeaderMenuItemProps[]; } -export class PanelHeaderMenu extends PureComponent { - renderItems = (menu: PanelHeaderMenuItemProps[], isSubMenu = false) => { +export class PanelHeaderMenu extends PureComponent { + renderItems = (menu: PanelMenuItem[], isSubMenu = false) => { return (