Run eslint

This commit is contained in:
Tulir Asokan 2021-07-02 12:56:08 +03:00
parent 5240209529
commit 598689b059
2 changed files with 6 additions and 6 deletions

View file

@ -15,10 +15,10 @@ limitations under the License.
*/ */
import React from "react"; import React from "react";
import {_td} from "../../../languageHandler"; import { _td } from "../../../languageHandler";
import * as sdk from "../../../index"; import * as sdk from "../../../index";
import MImageBody from './MImageBody'; import MImageBody from './MImageBody';
import {presentableTextForFile} from "./MFileBody"; import { presentableTextForFile } from "./MFileBody";
export default class MImageReplyBody extends MImageBody { export default class MImageReplyBody extends MImageBody {
onClick(ev) { onClick(ev) {

View file

@ -23,10 +23,10 @@ import * as sdk from '../../../index';
import dis from '../../../dispatcher/dispatcher'; import dis from '../../../dispatcher/dispatcher';
import SettingsStore from "../../../settings/SettingsStore"; import SettingsStore from "../../../settings/SettingsStore";
import {MatrixClient} from 'matrix-js-sdk'; import { MatrixClient } from 'matrix-js-sdk';
import {objectHasDiff} from '../../../utils/objects'; import { objectHasDiff } from '../../../utils/objects';
import {getHandlerTile} from "./EventTile"; import { getHandlerTile } from "./EventTile";
class ReplyTile extends React.Component { class ReplyTile extends React.Component {
static contextTypes = { static contextTypes = {
@ -112,7 +112,7 @@ class ReplyTile extends React.Component {
// This shouldn't happen: the caller should check we support this type // This shouldn't happen: the caller should check we support this type
// before trying to instantiate us // before trying to instantiate us
if (!tileHandler) { if (!tileHandler) {
const {mxEvent} = this.props; const { mxEvent } = this.props;
console.warn(`Event type not supported: type:${mxEvent.getType()} isState:${mxEvent.isState()}`); console.warn(`Event type not supported: type:${mxEvent.getType()} isState:${mxEvent.isState()}`);
return <div className="mx_ReplyTile mx_ReplyTile_info mx_MNoticeBody"> return <div className="mx_ReplyTile mx_ReplyTile_info mx_MNoticeBody">
{ _t('This event could not be displayed') } { _t('This event could not be displayed') }