mirror of https://github.com/vector-im/riot-web
tidy
parent
1c44f15d2d
commit
aa25bad689
|
@ -1108,9 +1108,9 @@ export default class InviteDialog extends React.PureComponent {
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
helpText = _t(
|
helpText = _t(
|
||||||
"Start a conversation with someone using their name or username (like <userId/>).",
|
"Start a conversation with someone using their name or username (like <userId/>).",
|
||||||
{},
|
{},
|
||||||
{userId: () => {
|
{userId: () => {
|
||||||
return (
|
return (
|
||||||
<a href={makeUserPermalink(userId)} rel="noreferrer noopener" target="_blank">{userId}</a>
|
<a href={makeUserPermalink(userId)} rel="noreferrer noopener" target="_blank">{userId}</a>
|
||||||
);
|
);
|
||||||
|
@ -1120,30 +1120,29 @@ export default class InviteDialog extends React.PureComponent {
|
||||||
|
|
||||||
if (CommunityPrototypeStore.instance.getSelectedCommunityId()) {
|
if (CommunityPrototypeStore.instance.getSelectedCommunityId()) {
|
||||||
const communityName = CommunityPrototypeStore.instance.getSelectedCommunityName();
|
const communityName = CommunityPrototypeStore.instance.getSelectedCommunityName();
|
||||||
|
const inviteText = _t("This won't invite them to %(communityName)s. " +
|
||||||
helpText = <React.Fragment>
|
"To invite someone to %(communityName)s, click <a>here</a>",
|
||||||
{ helpText } {_t(
|
|
||||||
"This won't invite them to %(communityName)s. To invite someone to %(communityName)s, " +
|
|
||||||
"click <a>here</a>",
|
|
||||||
{communityName}, {
|
{communityName}, {
|
||||||
userId: () => {
|
userId: () => {
|
||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
href={makeUserPermalink(userId)}
|
href={makeUserPermalink(userId)}
|
||||||
rel="noreferrer noopener"
|
rel="noreferrer noopener"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>{userId}</a>
|
>{userId}</a>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
a: (sub) => {
|
a: (sub) => {
|
||||||
return (
|
return (
|
||||||
<AccessibleButton
|
<AccessibleButton
|
||||||
kind="link"
|
kind="link"
|
||||||
onClick={this._onCommunityInviteClick}
|
onClick={this._onCommunityInviteClick}
|
||||||
>{sub}</AccessibleButton>
|
>{sub}</AccessibleButton>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
})}
|
});
|
||||||
|
helpText = <React.Fragment>
|
||||||
|
{ helpText } {inviteText}
|
||||||
</React.Fragment>;
|
</React.Fragment>;
|
||||||
}
|
}
|
||||||
buttonText = _t("Go");
|
buttonText = _t("Go");
|
||||||
|
|
Loading…
Reference in New Issue