EventIndexPanel: Shorten a overly long line.

pull/21833/head
Damir Jelić 2020-01-24 16:22:09 +01:00
parent ddea7415c7
commit cd225943ea
1 changed files with 7 additions and 1 deletions

View File

@ -142,6 +142,12 @@ export default class EventIndexPanel extends React.Component {
</div>
);
} else if (EventIndexPeg.platformHasSupport() && !EventIndexPeg.supportIsInstalled()) {
const nativeLink = (
"https://github.com/vector-im/riot-web/blob/develop/" +
"docs/native-node-modules.md#" +
"adding-seshat-for-search-in-e2e-encrypted-rooms"
);
eventIndexingSettings = (
<div>
{
@ -151,7 +157,7 @@ export default class EventIndexPanel extends React.Component {
"with <nativeLink>search components added</nativeLink>.",
{},
{
'nativeLink': (sub) => <a href="https://github.com/vector-im/riot-web/blob/develop/docs/native-node-modules.md#adding-seshat-for-search-in-e2e-encrypted-rooms">{sub}</a>,
'nativeLink': (sub) => <a href={nativeLink}>{sub}</a>,
},
)
}