You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Clean up other unlinted lint issues
This commit is contained in:
@@ -161,7 +161,8 @@ export default class RoomProfileSettings extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<form
|
<form
|
||||||
onSubmit={this._saveProfile}
|
onSubmit={this._saveProfile}
|
||||||
autoComplete="off" noValidate={true}
|
autoComplete="off"
|
||||||
|
noValidate={true}
|
||||||
className="mx_ProfileSettings_profileForm"
|
className="mx_ProfileSettings_profileForm"
|
||||||
>
|
>
|
||||||
<input type="file" ref={this._avatarUpload} className="mx_ProfileSettings_avatarUpload"
|
<input type="file" ref={this._avatarUpload} className="mx_ProfileSettings_avatarUpload"
|
||||||
@@ -184,13 +185,15 @@ export default class RoomProfileSettings extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className="mx_ProfileSettings_buttons">
|
<div className="mx_ProfileSettings_buttons">
|
||||||
<AccessibleButton
|
<AccessibleButton
|
||||||
onClick={this._clearProfile} kind="link"
|
onClick={this._clearProfile}
|
||||||
|
kind="link"
|
||||||
disabled={!this.state.enableProfileSave}
|
disabled={!this.state.enableProfileSave}
|
||||||
>
|
>
|
||||||
{_t("Cancel")}
|
{_t("Cancel")}
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
<AccessibleButton
|
<AccessibleButton
|
||||||
onClick={this._saveProfile} kind="primary"
|
onClick={this._saveProfile}
|
||||||
|
kind="primary"
|
||||||
disabled={!this.state.enableProfileSave}
|
disabled={!this.state.enableProfileSave}
|
||||||
>
|
>
|
||||||
{_t("Save")}
|
{_t("Save")}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import AccessibleButton from "../elements/AccessibleButton";
|
|||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
|
|
||||||
const AvatarSetting = ({avatarUrl, avatarAltText, avatarName, uploadAvatar, removeAvatar}) => {
|
const AvatarSetting = ({avatarUrl, avatarAltText, avatarName, uploadAvatar, removeAvatar}) => {
|
||||||
const [isHovering, setIsHovering] = useState();
|
const [isHovering, setIsHovering] = useState(false);
|
||||||
const hoveringProps = {
|
const hoveringProps = {
|
||||||
onMouseEnter: () => setIsHovering(true),
|
onMouseEnter: () => setIsHovering(true),
|
||||||
onMouseLeave: () => setIsHovering(false),
|
onMouseLeave: () => setIsHovering(false),
|
||||||
|
|||||||
@@ -155,7 +155,8 @@ export default class ProfileSettings extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<form
|
<form
|
||||||
onSubmit={this._saveProfile}
|
onSubmit={this._saveProfile}
|
||||||
autoComplete="off" noValidate={true}
|
autoComplete="off"
|
||||||
|
noValidate={true}
|
||||||
className="mx_ProfileSettings_profileForm"
|
className="mx_ProfileSettings_profileForm"
|
||||||
>
|
>
|
||||||
<input type="file" ref={this._avatarUpload} className="mx_ProfileSettings_avatarUpload"
|
<input type="file" ref={this._avatarUpload} className="mx_ProfileSettings_avatarUpload"
|
||||||
@@ -183,13 +184,15 @@ export default class ProfileSettings extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className="mx_ProfileSettings_buttons">
|
<div className="mx_ProfileSettings_buttons">
|
||||||
<AccessibleButton
|
<AccessibleButton
|
||||||
onClick={this._clearProfile} kind="link"
|
onClick={this._clearProfile}
|
||||||
|
kind="link"
|
||||||
disabled={!this.state.enableProfileSave}
|
disabled={!this.state.enableProfileSave}
|
||||||
>
|
>
|
||||||
{_t("Cancel")}
|
{_t("Cancel")}
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
<AccessibleButton
|
<AccessibleButton
|
||||||
onClick={this._saveProfile} kind="primary"
|
onClick={this._saveProfile}
|
||||||
|
kind="primary"
|
||||||
disabled={!this.state.enableProfileSave}
|
disabled={!this.state.enableProfileSave}
|
||||||
>
|
>
|
||||||
{_t("Save")}
|
{_t("Save")}
|
||||||
|
|||||||
Reference in New Issue
Block a user