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

Commit a394738

Browse files
authored
Fix react warnings (#7946)
1 parent 3c858a7 commit a394738

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

src/components/views/avatars/MemberAvatar.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ export default class MemberAvatar extends React.PureComponent<IProps, IState> {
108108
}
109109

110110
render() {
111-
let { member, fallbackUserId, onClick, viewUserOnClick, ...otherProps } = this.props;
111+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
112+
let { member, fallbackUserId, onClick, viewUserOnClick, forceHistorical, ...otherProps } = this.props;
112113
const userId = member ? member.userId : fallbackUserId;
113114

114115
if (viewUserOnClick) {
@@ -122,7 +123,8 @@ export default class MemberAvatar extends React.PureComponent<IProps, IState> {
122123
}
123124

124125
return (
125-
<BaseAvatar {...otherProps}
126+
<BaseAvatar
127+
{...otherProps}
126128
name={this.state.name}
127129
title={this.state.title}
128130
idName={userId}

src/components/views/settings/CryptographyPanel.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,16 @@ export default class CryptographyPanel extends React.Component<IProps, IState> {
7575
<div className='mx_SettingsTab_section mx_CryptographyPanel'>
7676
<span className='mx_SettingsTab_subheading'>{ _t("Cryptography") }</span>
7777
<table className='mx_SettingsTab_subsectionText mx_CryptographyPanel_sessionInfo'>
78-
<tr>
79-
<td>{ _t("Session ID:") }</td>
80-
<td><code>{ deviceId }</code></td>
81-
</tr>
82-
<tr>
83-
<td>{ _t("Session key:") }</td>
84-
<td><code><b>{ identityKey }</b></code></td>
85-
</tr>
78+
<tbody>
79+
<tr>
80+
<td>{ _t("Session ID:") }</td>
81+
<td><code>{ deviceId }</code></td>
82+
</tr>
83+
<tr>
84+
<td>{ _t("Session key:") }</td>
85+
<td><code><b>{ identityKey }</b></code></td>
86+
</tr>
87+
</tbody>
8688
</table>
8789
{ importExportButtons }
8890
{ noSendUnverifiedSetting }

0 commit comments

Comments
 (0)