diff --git a/public/app/features/dashboard/components/DashNav/DashNavButton.tsx b/public/app/features/dashboard/components/DashNav/DashNavButton.tsx index c1f137700f1..7a7423b9a4b 100644 --- a/public/app/features/dashboard/components/DashNav/DashNavButton.tsx +++ b/public/app/features/dashboard/components/DashNav/DashNavButton.tsx @@ -1,5 +1,5 @@ // Libraries -import React, { FunctionComponent } from 'react'; +import React, { FunctionComponent, MouseEvent } from 'react'; import { css } from 'emotion'; // Components import { IconName, IconType, IconSize, IconButton, useTheme, stylesFactory } from '@grafana/ui'; @@ -8,7 +8,7 @@ import { GrafanaTheme } from '@grafana/data'; interface Props { icon?: IconName; tooltip: string; - onClick?: () => void; + onClick?: (event: MouseEvent) => void; href?: string; children?: React.ReactNode; iconType?: IconType;