undo some delint
This commit is contained in:
parent
6c39213116
commit
d668f8018b
1 changed files with 26 additions and 20 deletions
|
@ -167,24 +167,28 @@ export default class CommunityPrototypeInviteDialog extends React.PureComponent<
|
||||||
public render() {
|
public render() {
|
||||||
const emailAddresses = [];
|
const emailAddresses = [];
|
||||||
this.state.emailTargets.forEach((address, i) => {
|
this.state.emailTargets.forEach((address, i) => {
|
||||||
emailAddresses.push(<Field
|
emailAddresses.push((
|
||||||
key={i}
|
<Field
|
||||||
value={address}
|
key={i}
|
||||||
onChange={(e) => this.onAddressChange(e, i)}
|
value={address}
|
||||||
label={_t("Email address")}
|
onChange={(e) => this.onAddressChange(e, i)}
|
||||||
placeholder={_t("Email address")}
|
label={_t("Email address")}
|
||||||
onBlur={() => this.onAddressBlur(i)}
|
placeholder={_t("Email address")}
|
||||||
/>);
|
onBlur={() => this.onAddressBlur(i)}
|
||||||
|
/>
|
||||||
|
));
|
||||||
});
|
});
|
||||||
|
|
||||||
// Push a clean input
|
// Push a clean input
|
||||||
emailAddresses.push(<Field
|
emailAddresses.push((
|
||||||
key={emailAddresses.length}
|
<Field
|
||||||
value={""}
|
key={emailAddresses.length}
|
||||||
onChange={(e) => this.onAddressChange(e, emailAddresses.length)}
|
value={""}
|
||||||
label={emailAddresses.length > 0 ? _t("Add another email") : _t("Email address")}
|
onChange={(e) => this.onAddressChange(e, emailAddresses.length)}
|
||||||
placeholder={emailAddresses.length > 0 ? _t("Add another email") : _t("Email address")}
|
label={emailAddresses.length > 0 ? _t("Add another email") : _t("Email address")}
|
||||||
/>);
|
placeholder={emailAddresses.length > 0 ? _t("Add another email") : _t("Email address")}
|
||||||
|
/>
|
||||||
|
));
|
||||||
|
|
||||||
let peopleIntro = null;
|
let peopleIntro = null;
|
||||||
const people = [];
|
const people = [];
|
||||||
|
@ -194,11 +198,13 @@ export default class CommunityPrototypeInviteDialog extends React.PureComponent<
|
||||||
people.push(this.renderPerson(person, i));
|
people.push(this.renderPerson(person, i));
|
||||||
});
|
});
|
||||||
if (humansToPresent.length < this.state.people.length) {
|
if (humansToPresent.length < this.state.people.length) {
|
||||||
people.push(<AccessibleButton
|
people.push((
|
||||||
onClick={this.onShowMorePeople}
|
<AccessibleButton
|
||||||
kind="link" key="more"
|
onClick={this.onShowMorePeople}
|
||||||
className="mx_CommunityPrototypeInviteDialog_morePeople"
|
kind="link" key="more"
|
||||||
>{_t("Show more")}</AccessibleButton>);
|
className="mx_CommunityPrototypeInviteDialog_morePeople"
|
||||||
|
>{_t("Show more")}</AccessibleButton>
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.state.people.length > 0) {
|
if (this.state.people.length > 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue