use ExternalLink components for external links (#10758)
* use ExternalLink components for external links * test * strict
This commit is contained in:
parent
42e6c9839c
commit
37b7dfe943
13 changed files with 281 additions and 47 deletions
|
@ -20,6 +20,7 @@ import { MatrixError, ConnectionError } from "matrix-js-sdk/src/http-api";
|
|||
import { _t, _td, Tags, TranslatedString } from "../languageHandler";
|
||||
import SdkConfig from "../SdkConfig";
|
||||
import { ValidatedServerConfig } from "./ValidatedServerConfig";
|
||||
import ExternalLink from "../components/views/elements/ExternalLink";
|
||||
|
||||
export const resourceLimitStrings = {
|
||||
"monthly_active_user": _td("This homeserver has hit its Monthly Active User limit."),
|
||||
|
@ -183,9 +184,9 @@ export function messageForConnectionError(
|
|||
{},
|
||||
{
|
||||
a: (sub) => (
|
||||
<a target="_blank" rel="noreferrer noopener" href={serverConfig.hsUrl}>
|
||||
<ExternalLink target="_blank" rel="noreferrer noopener" href={serverConfig.hsUrl}>
|
||||
{sub}
|
||||
</a>
|
||||
</ExternalLink>
|
||||
),
|
||||
},
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue