mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
add types
This commit is contained in:
parent
85ac256231
commit
15ea3a5287
@ -214,8 +214,13 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
|
||||
this.setState({isResizing: true});
|
||||
};
|
||||
|
||||
private onResizeStop = (e, direction, ref, d) => {
|
||||
const newHeight = this.heightAtStart + d.height;
|
||||
private onResizeStop = (
|
||||
e: MouseEvent | TouchEvent,
|
||||
travelDirection: Direction,
|
||||
refToElement: HTMLDivElement,
|
||||
delta: ResizeDelta,
|
||||
) => {
|
||||
const newHeight = this.heightAtStart + delta.height;
|
||||
this.applyHeightChange(newHeight);
|
||||
this.setState({isResizing: false, height: newHeight});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user