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

Commit

Permalink
Improve the styling of search initialization errors.
Browse files Browse the repository at this point in the history
Signed-off-by: Kalle Struik <[email protected]>
  • Loading branch information
KalleStruik committed Oct 3, 2021
1 parent 9f26c1c commit e232c4e
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions src/components/views/elements/DesktopBuildsNotice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,22 @@ export default function DesktopBuildsNotice({ isRoomEncrypted, kind }: IProps) {
if (EventIndexPeg.get()) return null;

if (EventIndexPeg.error) {
return <>
{ _t("Message search initialisation failed, check <a>your settings</a> for more information", {}, {
a: sub => (<a onClick={(evt) => {
evt.preventDefault();
dis.dispatch({
action: Action.ViewUserSettings,
initialTabId: UserTab.Security,
});
}}>
{ sub }
</a>),
}) }
</>;
return (
<div className="mx_DesktopBuildsNotice">
{ _t("Message search initialisation failed, check <a>your settings</a> for more information", {}, {
a: sub => (<a className="mx_linkButton"
onClick={(evt) => {
evt.preventDefault();
dis.dispatch({
action: Action.ViewUserSettings,
initialTabId: UserTab.Security,
});
}}>
{ sub }
</a>),
}) }
</div>
);
}

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

0 comments on commit e232c4e

Please sign in to comment.