mirror of https://github.com/vector-im/riot-web
Early de-linting
parent
875c0f94d3
commit
4a819d319e
|
@ -97,7 +97,7 @@ export class ExistingEmailAddress extends React.Component {
|
||||||
{_t("No")}
|
{_t("No")}
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -196,7 +196,7 @@ export default class EmailAddresses extends React.Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const existingEmailElements = this.state.emails.map((e) => {
|
const existingEmailElements = this.state.emails.map((e) => {
|
||||||
return <ExistingEmailAddress email={e} onRemoved={this._onRemoved} key={e.address}/>;
|
return <ExistingEmailAddress email={e} onRemoved={this._onRemoved} key={e.address} />;
|
||||||
});
|
});
|
||||||
|
|
||||||
let addButton = (
|
let addButton = (
|
||||||
|
@ -222,7 +222,7 @@ export default class EmailAddresses extends React.Component {
|
||||||
<form onSubmit={this._onAddClick} autoComplete={false}
|
<form onSubmit={this._onAddClick} autoComplete={false}
|
||||||
noValidate={true} className="mx_EmailAddresses_new">
|
noValidate={true} className="mx_EmailAddresses_new">
|
||||||
<Field id="newEmailAddress" ref="newEmailAddress" label={_t("Email Address")}
|
<Field id="newEmailAddress" ref="newEmailAddress" label={_t("Email Address")}
|
||||||
type="text" autoComplete="off" disabled={this.state.verifying}/>
|
type="text" autoComplete="off" disabled={this.state.verifying} />
|
||||||
{addButton}
|
{addButton}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -109,18 +109,18 @@ export default class ProfileSettings extends React.Component {
|
||||||
// TODO: Why is rendering a box with an overlay so complicated? Can the DOM be reduced?
|
// TODO: Why is rendering a box with an overlay so complicated? Can the DOM be reduced?
|
||||||
|
|
||||||
let showOverlayAnyways = true;
|
let showOverlayAnyways = true;
|
||||||
let avatarElement = <div className="mx_ProfileSettings_avatarPlaceholder"/>;
|
let avatarElement = <div className="mx_ProfileSettings_avatarPlaceholder" />;
|
||||||
if (this.state.avatarUrl) {
|
if (this.state.avatarUrl) {
|
||||||
showOverlayAnyways = false;
|
showOverlayAnyways = false;
|
||||||
avatarElement = <img src={this.state.avatarUrl}
|
avatarElement = <img src={this.state.avatarUrl}
|
||||||
alt={_t("Profile picture")} />
|
alt={_t("Profile picture")} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
const avatarOverlayClasses = classNames({
|
const avatarOverlayClasses = classNames({
|
||||||
"mx_ProfileSettings_avatarOverlay": true,
|
"mx_ProfileSettings_avatarOverlay": true,
|
||||||
"mx_ProfileSettings_avatarOverlay_show": showOverlayAnyways,
|
"mx_ProfileSettings_avatarOverlay_show": showOverlayAnyways,
|
||||||
});
|
});
|
||||||
let avatarHoverElement = (
|
const avatarHoverElement = (
|
||||||
<div className={avatarOverlayClasses} onClick={this._uploadAvatar}>
|
<div className={avatarOverlayClasses} onClick={this._uploadAvatar}>
|
||||||
<span className="mx_ProfileSettings_avatarOverlayText">{_t("Upload profile picture")}</span>
|
<span className="mx_ProfileSettings_avatarOverlayText">{_t("Upload profile picture")}</span>
|
||||||
<div className="mx_ProfileSettings_avatarOverlayImgContainer">
|
<div className="mx_ProfileSettings_avatarOverlayImgContainer">
|
||||||
|
@ -132,7 +132,7 @@ export default class ProfileSettings extends React.Component {
|
||||||
return (
|
return (
|
||||||
<form onSubmit={this._saveProfile} autoComplete={false} noValidate={true}>
|
<form onSubmit={this._saveProfile} autoComplete={false} noValidate={true}>
|
||||||
<input type="file" ref="avatarUpload" className="mx_ProfileSettings_avatarUpload"
|
<input type="file" ref="avatarUpload" className="mx_ProfileSettings_avatarUpload"
|
||||||
onChange={this._onAvatarChanged} accept="image/*"/>
|
onChange={this._onAvatarChanged} accept="image/*" />
|
||||||
<div className="mx_ProfileSettings_profile">
|
<div className="mx_ProfileSettings_profile">
|
||||||
<div className="mx_ProfileSettings_controls">
|
<div className="mx_ProfileSettings_controls">
|
||||||
<p>{this.state.userId}</p>
|
<p>{this.state.userId}</p>
|
||||||
|
|
Loading…
Reference in New Issue