mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 09:21:54 +00:00
[eslint] updated eslintrc and improved the code (#4702)
This commit is contained in:
@@ -98,12 +98,12 @@ class DraftListItem extends React.Component {
|
||||
<td className="text-center">
|
||||
{this.state.isMenuIconShow && (
|
||||
<Dropdown isOpen={this.state.isItemMenuShow} toggle={this.toggleOperationMenu}>
|
||||
<DropdownToggle
|
||||
tag="i"
|
||||
className="fas fa-ellipsis-v attr-action-icon"
|
||||
<DropdownToggle
|
||||
tag="i"
|
||||
className="fas fa-ellipsis-v attr-action-icon"
|
||||
title={gettext('More Operations')}
|
||||
onClick={this.onDropdownToggleClick}
|
||||
data-toggle="dropdown"
|
||||
data-toggle="dropdown"
|
||||
aria-expanded={this.state.isItemMenuShow}
|
||||
/>
|
||||
<DropdownMenu>
|
||||
|
@@ -42,9 +42,9 @@ class DraftListView extends React.Component {
|
||||
<tbody>
|
||||
{ drafts && drafts.map((draft) => {
|
||||
return (
|
||||
<DraftListItem
|
||||
key={draft.id}
|
||||
draft={draft}
|
||||
<DraftListItem
|
||||
key={draft.id}
|
||||
draft={draft}
|
||||
isItemFreezed={this.state.isItemFreezed}
|
||||
onFreezedItem={this.onFreezedItem}
|
||||
onUnfreezedItem={this.onUnfreezedItem}
|
||||
|
Reference in New Issue
Block a user