Auto-fix lint errors
This commit is contained in:
parent
4c5720a573
commit
ae0a8b8da4
625 changed files with 3170 additions and 3232 deletions
|
@ -137,9 +137,9 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
|||
if (activeElement) {
|
||||
activeElement.blur();
|
||||
}
|
||||
await this.nameField.current.validate({allowEmpty: false});
|
||||
await this.nameField.current.validate({ allowEmpty: false });
|
||||
if (this.aliasField.current) {
|
||||
await this.aliasField.current.validate({allowEmpty: false});
|
||||
await this.aliasField.current.validate({ allowEmpty: false });
|
||||
}
|
||||
// Validation and state updates are async, so we need to wait for them to complete
|
||||
// first. Queue a `setState` callback and wait for it to resolve.
|
||||
|
@ -194,7 +194,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
|||
|
||||
private onNameValidate = async (fieldState: IFieldState) => {
|
||||
const result = await CreateRoomDialog.validateRoomName(fieldState);
|
||||
this.setState({nameIsValid: result.valid});
|
||||
this.setState({ nameIsValid: result.valid });
|
||||
return result;
|
||||
};
|
||||
|
||||
|
@ -276,7 +276,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
|||
let title = this.state.isPublic ? _t('Create a public room') : _t('Create a private room');
|
||||
if (CommunityPrototypeStore.instance.getSelectedCommunityId()) {
|
||||
const name = CommunityPrototypeStore.instance.getSelectedCommunityName();
|
||||
title = _t("Create a room in %(communityName)s", {communityName: name});
|
||||
title = _t("Create a room in %(communityName)s", { communityName: name });
|
||||
}
|
||||
return (
|
||||
<BaseDialog className="mx_CreateRoomDialog" onFinished={this.props.onFinished}
|
||||
|
@ -313,7 +313,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
|||
<LabelledToggleSwitch
|
||||
label={_t(
|
||||
"Block anyone not part of %(serverName)s from ever joining this room.",
|
||||
{serverName: MatrixClientPeg.getHomeserverName()},
|
||||
{ serverName: MatrixClientPeg.getHomeserverName() },
|
||||
)}
|
||||
onChange={this.onNoFederateChange}
|
||||
value={this.state.noFederate}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue