You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Lint
This commit is contained in:
@@ -80,10 +80,15 @@ export default class BridgeSettingsTab extends React.Component {
|
|||||||
shouldShowPillAvatar={true}
|
shouldShowPillAvatar={true}
|
||||||
/> bot user.</p>
|
/> bot user.</p>
|
||||||
);
|
);
|
||||||
|
let channelLink = channelName;
|
||||||
|
if (channel.external_url) {
|
||||||
|
channelLink = <a target="_blank" href={channel.external_url}>{channelName}</a>;
|
||||||
|
}
|
||||||
|
|
||||||
const channelLink = channel.external_url ? (<a target="_blank" href={channel.external_url}>{channelName}</a>) : channelName;
|
let networkLink = networkName;
|
||||||
const networkLink = network && network.external_url ? (<a target="_blank" href={network.external_url}>{networkName}</a>)
|
if (network && network.external_url) {
|
||||||
: networkName;
|
networkLink = <a target="_blank" href={network.external_url}>{networkName}</a>;
|
||||||
|
}
|
||||||
|
|
||||||
const chanAndNetworkInfo = (
|
const chanAndNetworkInfo = (
|
||||||
<p> Bridged into {channelLink} {networkLink}, on {protocolName}</p>
|
<p> Bridged into {channelLink} {networkLink}, on {protocolName}</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user