mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 01:12:03 +00:00
Repair eslint wraning (#2453)
This commit is contained in:
@@ -95,11 +95,11 @@ class Account extends Component {
|
||||
renderAvatar = () => {
|
||||
if (this.state.avatarURL) {
|
||||
return (
|
||||
<img src={this.state.avatarURL} width="36" height="36" className="avatar" />
|
||||
<img src={this.state.avatarURL} width="36" height="36" className="avatar" alt={gettext('avatar')} />
|
||||
);
|
||||
}
|
||||
return (
|
||||
<img src="" width="36" height="36" className="avatar" />
|
||||
<img src="" width="36" height="36" className="avatar" alt={gettext('avatar')} />
|
||||
);
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ class Account extends Component {
|
||||
return (
|
||||
<div id="account">
|
||||
<a id="my-info" onClick={this.onClickAccount} className="account-toggle no-deco d-none d-md-block" aria-label="View profile and more">
|
||||
<span><img src={this.state.avatarURL} width="36" height="36" className="avatar" /></span>
|
||||
<span><img src={this.state.avatarURL} width="36" height="36" className="avatar" alt={gettext('avatar')} /></span>
|
||||
<span className="fas fa-caret-down vam"></span>
|
||||
</a>
|
||||
<span className="account-toggle sf2-icon-more mobile-icon d-md-none" aria-label="View profile and more" onClick={this.onClickAccount}></span>
|
||||
|
Reference in New Issue
Block a user