1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 19:29:56 +00:00

Merge branch '7.0'

This commit is contained in:
plt
2019-07-22 17:09:10 +08:00
35 changed files with 583 additions and 433 deletions

View File

@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
import MediaQuery from 'react-responsive';
import { gettext, storages } from '../../utils/constants';
import MylibRepoListItem from './mylib-repo-list-item';
import LibsMobileThead from '../../components/libs-mobile-thead';
const propTypes = {
sortBy: PropTypes.string.isRequired,
@@ -27,7 +28,7 @@ class MylibRepoListView extends React.Component {
onFreezedItem = () => {
this.setState({isItemFreezed: true});
}
onUnfreezedItem = () => {
this.setState({isItemFreezed: false});
}
@@ -58,7 +59,7 @@ class MylibRepoListView extends React.Component {
<Fragment>
{this.props.repoList.map(item => {
return (
<MylibRepoListItem
<MylibRepoListItem
key={item.repo_id}
repo={item}
isItemFreezed={this.state.isItemFreezed}
@@ -101,13 +102,7 @@ class MylibRepoListView extends React.Component {
renderMobileUI = () => {
return (
<table className="table-thead-hidden">
<thead>
<tr>
<th width="12%"><span className="sr-only">{gettext('Library Type')}</span></th>
<th width="80%"></th>
<th width="8%"><span className="sr-only">{gettext('Actions')}</span></th>
</tr>
</thead>
<LibsMobileThead />
<tbody>
{this.renderRepoListView()}
</tbody>