Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 0e5a036

Browse files
committed
Improve the styling of search initialization errors.
Signed-off-by: Kalle Struik <[email protected]>
1 parent 9f26c1c commit 0e5a036

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

src/components/views/elements/DesktopBuildsNotice.tsx

+17-14
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,23 @@ export default function DesktopBuildsNotice({ isRoomEncrypted, kind }: IProps) {
3636
if (!isRoomEncrypted) return null;
3737
if (EventIndexPeg.get()) return null;
3838

39-
if (EventIndexPeg.error) {
40-
return <>
41-
{ _t("Message search initialisation failed, check <a>your settings</a> for more information", {}, {
42-
a: sub => (<a onClick={(evt) => {
43-
evt.preventDefault();
44-
dis.dispatch({
45-
action: Action.ViewUserSettings,
46-
initialTabId: UserTab.Security,
47-
});
48-
}}>
49-
{ sub }
50-
</a>),
51-
}) }
52-
</>;
39+
if (true) {
40+
return (
41+
<div className="mx_DesktopBuildsNotice">
42+
{ _t("Message search initialisation failed, check <a>your settings</a> for more information", {}, {
43+
a: sub => (<a className="mx_linkButton"
44+
onClick={(evt) => {
45+
evt.preventDefault();
46+
dis.dispatch({
47+
action: Action.ViewUserSettings,
48+
initialTabId: UserTab.Security,
49+
});
50+
}}>
51+
{ sub }
52+
</a>),
53+
}) }
54+
</div>
55+
);
5356
}
5457

5558
const { desktopBuilds, brand } = SdkConfig.get();

0 commit comments

Comments
 (0)