add types

This commit is contained in:
Bruno Windels 2020-07-10 18:42:51 +02:00
parent 85ac256231
commit 15ea3a5287

View file

@ -214,8 +214,13 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
this.setState({isResizing: true}); this.setState({isResizing: true});
}; };
private onResizeStop = (e, direction, ref, d) => { private onResizeStop = (
const newHeight = this.heightAtStart + d.height; e: MouseEvent | TouchEvent,
travelDirection: Direction,
refToElement: HTMLDivElement,
delta: ResizeDelta,
) => {
const newHeight = this.heightAtStart + delta.height;
this.applyHeightChange(newHeight); this.applyHeightChange(newHeight);
this.setState({isResizing: false, height: newHeight}); this.setState({isResizing: false, height: newHeight});
}; };