From f44421d61ec9d78367b673c545a9b84ffa8be397 Mon Sep 17 00:00:00 2001 From: ttheshreeyasingh Date: Sat, 9 Apr 2022 00:16:33 +0530 Subject: [PATCH] 'your settings' in error message styled as link --- .../views/elements/DesktopBuildsNotice.tsx | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/components/views/elements/DesktopBuildsNotice.tsx b/src/components/views/elements/DesktopBuildsNotice.tsx index ac9b591e959..aea2e3d48f4 100644 --- a/src/components/views/elements/DesktopBuildsNotice.tsx +++ b/src/components/views/elements/DesktopBuildsNotice.tsx @@ -22,7 +22,7 @@ import { _t } from "../../../languageHandler"; import SdkConfig from "../../../SdkConfig"; import dis from "../../../dispatcher/dispatcher"; import { Action } from "../../../dispatcher/actions"; -import { UserTab } from "../dialogs/UserSettingsDialog"; +import { UserTab } from "../dialogs/UserTab"; import AccessibleButton from "./AccessibleButton"; export enum WarningKind { @@ -40,23 +40,22 @@ export default function DesktopBuildsNotice({ isRoomEncrypted, kind }: IProps) { if (EventIndexPeg.get()) return null; if (EventIndexPeg.error) { - return <> - { _t("Message search initialisation failed, check your settings for more information", {}, { - a: sub => ( - + { _t("Message search initialisation failed, check your settings for more information", {}, { + a: sub => ( { evt.preventDefault(); dis.dispatch({ action: Action.ViewUserSettings, initialTabId: UserTab.Security, }); - }} - > + }}> { sub } - ), - }) } - ; + ), + }) } + + ); } const brand = SdkConfig.get("brand"); @@ -102,4 +101,4 @@ export default function DesktopBuildsNotice({ isRoomEncrypted, kind }: IProps) { { text } ); -} +} \ No newline at end of file