Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 0e42fc4

Browse files
committed
Resolve couple of React warnings/errors
Signed-off-by: Michael Telatynski <[email protected]>
1 parent 67193b0 commit 0e42fc4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/views/elements/AccessibleTooltipButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ export default class AccessibleTooltipButton extends React.PureComponent<IToolti
6262
};
6363

6464
render() {
65-
const {title, tooltip, children, tooltipClassName, ...props} = this.props;
65+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
66+
const {title, tooltip, children, tooltipClassName, forceHide, ...props} = this.props;
6667

6768
const tip = this.state.hover ? <Tooltip
6869
className="mx_AccessibleTooltipButton_container"

src/components/views/rooms/MessageComposer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ export default class MessageComposer extends React.Component {
437437
const canEndConf = WidgetUtils.canUserModifyWidgets(this.props.room.roomId);
438438
controls.push(
439439
<HangupButton
440+
key="controls_hangup"
440441
roomId={this.props.room.roomId}
441442
isConference={true}
442443
canEndConference={canEndConf}

0 commit comments

Comments
 (0)