1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 03:11:07 +00:00

fix warnings

This commit is contained in:
Michael An
2019-06-04 17:59:54 +08:00
parent 7bcb942ef6
commit e4fde3d7a8
16 changed files with 53 additions and 53 deletions

View File

@@ -26,7 +26,7 @@ class Content extends Component {
this.props.sortItems(sortBy, sortOrder);
}
constructor(props) {
constructor(props) {
super(props);
this.state = {
modalOpen: false,
@@ -120,7 +120,7 @@ class Item extends Component {
constructor(props) {
super(props);
let item = this.props.item
let item = this.props.item;
this.state = {
currentPermission: item.permissions.can_download ? 'Preview and download' : 'Preview only',
showOpIcon: false,
@@ -209,7 +209,7 @@ class Item extends Component {
let deleteIconClassName = 'sf2-icon-delete action-icon' + iconVisibility;
return (
<tr onMouseEnter={this.handleMouseOver} onMouseLeave={this.handleMouseOut}>
<td><img src={iconUrl} width="24" /></td>
<td><img src={iconUrl} width="24" alt=""/></td>
<td>
{item.is_dir ?
<Link to={linkUrl}>{item.obj_name}</Link> :