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

Style 'your settings' in error message as link #8277

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions src/components/views/elements/DesktopBuildsNotice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a>your settings</a> for more information", {}, {
a: sub => (
<AccessibleButton
kind="link_inline"
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 }
</AccessibleButton>),
}) }
</>;
</a>),
}) }
</div>
);
}

const brand = SdkConfig.get("brand");
Expand Down Expand Up @@ -102,4 +101,4 @@ export default function DesktopBuildsNotice({ isRoomEncrypted, kind }: IProps) {
<span>{ text }</span>
</div>
);
}
}