Fix react warnings (#7946)
This commit is contained in:
parent
3c858a723b
commit
a39473810a
2 changed files with 14 additions and 10 deletions
|
@ -108,7 +108,8 @@ export default class MemberAvatar extends React.PureComponent<IProps, IState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
let { member, fallbackUserId, onClick, viewUserOnClick, ...otherProps } = this.props;
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
let { member, fallbackUserId, onClick, viewUserOnClick, forceHistorical, ...otherProps } = this.props;
|
||||||
const userId = member ? member.userId : fallbackUserId;
|
const userId = member ? member.userId : fallbackUserId;
|
||||||
|
|
||||||
if (viewUserOnClick) {
|
if (viewUserOnClick) {
|
||||||
|
@ -122,7 +123,8 @@ export default class MemberAvatar extends React.PureComponent<IProps, IState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BaseAvatar {...otherProps}
|
<BaseAvatar
|
||||||
|
{...otherProps}
|
||||||
name={this.state.name}
|
name={this.state.name}
|
||||||
title={this.state.title}
|
title={this.state.title}
|
||||||
idName={userId}
|
idName={userId}
|
||||||
|
|
|
@ -75,14 +75,16 @@ export default class CryptographyPanel extends React.Component<IProps, IState> {
|
||||||
<div className='mx_SettingsTab_section mx_CryptographyPanel'>
|
<div className='mx_SettingsTab_section mx_CryptographyPanel'>
|
||||||
<span className='mx_SettingsTab_subheading'>{ _t("Cryptography") }</span>
|
<span className='mx_SettingsTab_subheading'>{ _t("Cryptography") }</span>
|
||||||
<table className='mx_SettingsTab_subsectionText mx_CryptographyPanel_sessionInfo'>
|
<table className='mx_SettingsTab_subsectionText mx_CryptographyPanel_sessionInfo'>
|
||||||
<tr>
|
<tbody>
|
||||||
<td>{ _t("Session ID:") }</td>
|
<tr>
|
||||||
<td><code>{ deviceId }</code></td>
|
<td>{ _t("Session ID:") }</td>
|
||||||
</tr>
|
<td><code>{ deviceId }</code></td>
|
||||||
<tr>
|
</tr>
|
||||||
<td>{ _t("Session key:") }</td>
|
<tr>
|
||||||
<td><code><b>{ identityKey }</b></code></td>
|
<td>{ _t("Session key:") }</td>
|
||||||
</tr>
|
<td><code><b>{ identityKey }</b></code></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{ importExportButtons }
|
{ importExportButtons }
|
||||||
{ noSendUnverifiedSetting }
|
{ noSendUnverifiedSetting }
|
||||||
|
|
Loading…
Reference in a new issue