You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
Appease the linter
This commit is contained in:
@@ -39,7 +39,7 @@ export default function DesktopBuildsNotice({isRoomEncrypted, kind}: IProps) {
|
|||||||
let logo = null;
|
let logo = null;
|
||||||
if (desktopBuilds.available) {
|
if (desktopBuilds.available) {
|
||||||
logo = <img src={desktopBuilds.logo} />;
|
logo = <img src={desktopBuilds.logo} />;
|
||||||
switch(kind) {
|
switch (kind) {
|
||||||
case WarningKind.Files:
|
case WarningKind.Files:
|
||||||
text = _t("Use the <a>Desktop app</a> to see encrypted files", {}, {
|
text = _t("Use the <a>Desktop app</a> to see encrypted files", {}, {
|
||||||
a: sub => (<a href={desktopBuilds.url} target="_blank" rel="noreferrer noopener">{sub}</a>),
|
a: sub => (<a href={desktopBuilds.url} target="_blank" rel="noreferrer noopener">{sub}</a>),
|
||||||
@@ -52,7 +52,7 @@ export default function DesktopBuildsNotice({isRoomEncrypted, kind}: IProps) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch(kind) {
|
switch (kind) {
|
||||||
case WarningKind.Files:
|
case WarningKind.Files:
|
||||||
text = _t("This version of %(brand)s does not support viewing encrypted files", {brand});
|
text = _t("This version of %(brand)s does not support viewing encrypted files", {brand});
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -20,8 +20,6 @@ import AccessibleButton from "../elements/AccessibleButton";
|
|||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import {Key} from "../../../Keyboard";
|
import {Key} from "../../../Keyboard";
|
||||||
import SdkConfig from "../../../SdkConfig";
|
|
||||||
import EventIndexPeg from "../../../indexing/EventIndexPeg";
|
|
||||||
import DesktopBuildsNotice, {WarningKind} from "../elements/DesktopBuildsNotice";
|
import DesktopBuildsNotice, {WarningKind} from "../elements/DesktopBuildsNotice";
|
||||||
|
|
||||||
export default class SearchBar extends React.Component {
|
export default class SearchBar extends React.Component {
|
||||||
|
|||||||
Reference in New Issue
Block a user