From c3a37544323da3c2d7801114563c597fd57e352a Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 16 Sep 2020 17:27:45 -0600 Subject: [PATCH] Appease the linter --- src/components/views/elements/DesktopBuildsNotice.tsx | 4 ++-- src/components/views/rooms/SearchBar.js | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/views/elements/DesktopBuildsNotice.tsx b/src/components/views/elements/DesktopBuildsNotice.tsx index 688d0669da..cc5b9174d1 100644 --- a/src/components/views/elements/DesktopBuildsNotice.tsx +++ b/src/components/views/elements/DesktopBuildsNotice.tsx @@ -39,7 +39,7 @@ export default function DesktopBuildsNotice({isRoomEncrypted, kind}: IProps) { let logo = null; if (desktopBuilds.available) { logo = ; - switch(kind) { + switch (kind) { case WarningKind.Files: text = _t("Use the Desktop app to see encrypted files", {}, { a: sub => ({sub}), @@ -52,7 +52,7 @@ export default function DesktopBuildsNotice({isRoomEncrypted, kind}: IProps) { break; } } else { - switch(kind) { + switch (kind) { case WarningKind.Files: text = _t("This version of %(brand)s does not support viewing encrypted files", {brand}); break; diff --git a/src/components/views/rooms/SearchBar.js b/src/components/views/rooms/SearchBar.js index 4bf97aac10..ac637673e4 100644 --- a/src/components/views/rooms/SearchBar.js +++ b/src/components/views/rooms/SearchBar.js @@ -20,8 +20,6 @@ import AccessibleButton from "../elements/AccessibleButton"; import classNames from "classnames"; import { _t } from '../../../languageHandler'; import {Key} from "../../../Keyboard"; -import SdkConfig from "../../../SdkConfig"; -import EventIndexPeg from "../../../indexing/EventIndexPeg"; import DesktopBuildsNotice, {WarningKind} from "../elements/DesktopBuildsNotice"; export default class SearchBar extends React.Component {