EventIndexPanel: Shorten a overly long line.

This commit is contained in:
Damir Jelić 2020-01-24 16:22:09 +01:00
parent ddea7415c7
commit cd225943ea

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>,
},
)
}