1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 23:48:47 +00:00

Refactor draft (#3018)

* refactor draft

* update
This commit is contained in:
陈钦亮
2019-03-01 16:49:35 +08:00
committed by Daniel Pan
parent b25c2752a7
commit 6137e720f0
47 changed files with 497 additions and 2942 deletions

View File

@@ -6,7 +6,7 @@ import DraftListItem from './draft-list-item';
const propTypes = {
draftList: PropTypes.array.isRequired,
onDeleteHandler: PropTypes.func.isRequired,
onReviewHandler: PropTypes.func.isRequired,
onPublishHandler: PropTypes.func.isRequired,
};
class DraftListView extends React.Component {
@@ -34,8 +34,7 @@ class DraftListView extends React.Component {
<tr>
<th style={{width: '4%'}}>{/*img*/}</th>
<th style={{width: '46%'}}>{gettext('Name')}</th>
<th style={{width: '20%'}}>{gettext('Library')}</th>
<th style={{width: '10%'}}>{gettext('Review')}</th>
<th style={{width: '30%'}}>{gettext('Library')}</th>
<th style={{width: '10%'}}>{gettext('Last Update')}</th>
<th style={{width: '10%'}}></th>
</tr>
@@ -50,7 +49,7 @@ class DraftListView extends React.Component {
onFreezedItem={this.onFreezedItem}
onUnfreezedItem={this.onUnfreezedItem}
onDeleteHandler={this.props.onDeleteHandler}
onReviewHandler={this.props.onReviewHandler}
onPublishHandler={this.props.onPublishHandler}
/>
);
})}