mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Appease the linter
This commit is contained in:
parent
e58b514803
commit
6f237161fd
1 changed files with 16 additions and 4 deletions
|
@ -1103,16 +1103,28 @@ export default class InviteDialog extends React.PureComponent {
|
||||||
const communityName = GroupStore.getSummary(communityId)?.profile?.name || communityId;
|
const communityName = GroupStore.getSummary(communityId)?.profile?.name || communityId;
|
||||||
helpText = _t(
|
helpText = _t(
|
||||||
"Start a conversation with someone using their name, username (like <userId/>) or email address. " +
|
"Start a conversation with someone using their name, username (like <userId/>) or email address. " +
|
||||||
"This won't invite them to %(communityName)s. To invite someone to %(communityName)s, click <a>here</a>.",
|
"This won't invite them to %(communityName)s. To invite someone to %(communityName)s, click " +
|
||||||
|
"<a>here</a>.",
|
||||||
{communityName}, {
|
{communityName}, {
|
||||||
userId: () => {
|
userId: () => {
|
||||||
return <a href={makeUserPermalink(userId)} rel="noreferrer noopener" target="_blank">{userId}</a>;
|
return (
|
||||||
|
<a
|
||||||
|
href={makeUserPermalink(userId)}
|
||||||
|
rel="noreferrer noopener"
|
||||||
|
target="_blank"
|
||||||
|
>{userId}</a>
|
||||||
|
);
|
||||||
},
|
},
|
||||||
a: (sub) => {
|
a: (sub) => {
|
||||||
return <AccessibleButton kind="link" onClick={this._onCommunityInviteClick}>{sub}</AccessibleButton>
|
return (
|
||||||
|
<AccessibleButton
|
||||||
|
kind="link"
|
||||||
|
onClick={this._onCommunityInviteClick}
|
||||||
|
>{sub}</AccessibleButton>
|
||||||
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
buttonText = _t("Go");
|
buttonText = _t("Go");
|
||||||
goButtonFn = this._startDm;
|
goButtonFn = this._startDm;
|
||||||
|
|
Loading…
Reference in a new issue