ManageEventIndex: Fix a couple of lint issues.

This commit is contained in:
Damir Jelić 2020-01-21 16:58:41 +01:00
parent a2892f5b02
commit 47ea453abf

View file

@ -16,7 +16,6 @@ limitations under the License.
import React from 'react'; import React from 'react';
import * as sdk from '../../../../index'; import * as sdk from '../../../../index';
import {MatrixClientPeg} from '../../../../MatrixClientPeg';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { _t } from '../../../../languageHandler'; import { _t } from '../../../../languageHandler';
@ -52,7 +51,6 @@ export default class ManageEventIndex extends React.Component {
crawlerSleepTime: crawlerSleepTime:
SettingsStore.getValueAt(SettingLevel.DEVICE, 'crawlerSleepTime'), SettingsStore.getValueAt(SettingLevel.DEVICE, 'crawlerSleepTime'),
}; };
} }
async updateCurrentRoom(room) { async updateCurrentRoom(room) {
@ -146,10 +144,8 @@ export default class ManageEventIndex extends React.Component {
crawlerState = <div>{_t("Not downloading messages for any room.")}</div>; crawlerState = <div>{_t("Not downloading messages for any room.")}</div>;
} else { } else {
crawlerState = ( crawlerState = (
<div>{_t( <div>
"Downloading mesages for %(currentRoom)s.", {_t("Downloading mesages for %(currentRoom)s.", { currentRoom: this.state.currentRoom })}
{ currentRoom: this.state.currentRoom }
)}
</div> </div>
); );
} }
@ -159,7 +155,7 @@ export default class ManageEventIndex extends React.Component {
<div> <div>
{ {
_t( "Riot is securely caching encrypted messages locally for them " + _t( "Riot is securely caching encrypted messages locally for them " +
"to appear in search results:" "to appear in search results:",
) )
} }
<div className='mx_SettingsTab_subsectionText'> <div className='mx_SettingsTab_subsectionText'>
@ -188,7 +184,7 @@ export default class ManageEventIndex extends React.Component {
{ {
_t( "Riot can't securely cache encrypted messages locally" + _t( "Riot can't securely cache encrypted messages locally" +
"while running in a web browser. Use Riot Desktop for" + "while running in a web browser. Use Riot Desktop for" +
"encrypted messages to appear in search results." "encrypted messages to appear in search results.",
) )
} }
</div> </div>
@ -196,9 +192,7 @@ export default class ManageEventIndex extends React.Component {
} }
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog'); const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
let buttons; const buttons = <div>
buttons = <div>
<div className="mx_Dialog_buttons"> <div className="mx_Dialog_buttons">
<AccessibleButton kind="secondary" onClick={this._onDisable}> <AccessibleButton kind="secondary" onClick={this._onDisable}>
{_t("Disable")} {_t("Disable")}