diff --git a/public/app/features/dashboard/dashgrid/PanelResizer.tsx b/public/app/features/dashboard/dashgrid/PanelResizer.tsx index ca8abd0d1e3..1ee5b3884a0 100644 --- a/public/app/features/dashboard/dashgrid/PanelResizer.tsx +++ b/public/app/features/dashboard/dashgrid/PanelResizer.tsx @@ -1,6 +1,6 @@ import React, { PureComponent } from 'react'; import { throttle } from 'lodash'; -import Draggable from 'react-draggable'; +import Draggable, { DraggableEventHandler } from 'react-draggable'; import { PanelModel } from '../panel_model'; @@ -42,7 +42,7 @@ export class PanelResizer extends PureComponent { return 100; } - changeHeight = height => { + changeHeight = (height: number) => { const sh = this.smallestHeight; const lh = this.largestHeight; height = height < sh ? sh : height; @@ -54,7 +54,7 @@ export class PanelResizer extends PureComponent { }); }; - onDrag = (evt, data) => { + onDrag: DraggableEventHandler = (evt, data) => { const newHeight = this.state.editorHeight + data.y; this.throttledChangeHeight(newHeight); this.throttledResizeDone();