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

Commit 08aacdd

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

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

src/components/views/elements/DesktopBuildsNotice.tsx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,21 @@ export default function DesktopBuildsNotice({ isRoomEncrypted, kind }: IProps) {
3737
if (EventIndexPeg.get()) return null;
3838

3939
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-
</>;
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 href="javascript:void" onClick={(evt) => {
44+
evt.preventDefault();
45+
dis.dispatch({
46+
action: Action.ViewUserSettings,
47+
initialTabId: UserTab.Security,
48+
});
49+
}}>
50+
{ sub }
51+
</a>),
52+
}) }
53+
</div>
54+
);
5355
}
5456

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

0 commit comments

Comments
 (0)