1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 07:08:55 +00:00

rename list and item

This commit is contained in:
shanshuirenjia
2018-12-10 18:19:03 +08:00
parent 60acb25a9a
commit eaceb8a1bd
4 changed files with 9 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
import React, {Fragment} from 'react';
import PropTypes from 'prop-types';
import { gettext } from '../../utils/constants';
import ShareRepoListItem from './share-repo-list-item';
import SharedRepoListItem from './shared-repo-list-item';
const propTypes = {
currentGroup: PropTypes.object,
@@ -10,7 +10,7 @@ const propTypes = {
onItemUnshared: PropTypes.func.isRequired,
};
class ShareRepoListView extends React.Component {
class SharedRepoListView extends React.Component {
constructor(props) {
super(props);
@@ -30,7 +30,7 @@ class ShareRepoListView extends React.Component {
<Fragment>
{this.props.repoList.map(repo => {
return (
<ShareRepoListItem
<SharedRepoListItem
key={repo.repo_id}
repo={repo}
currentGroup={this.props.currentGroup}
@@ -100,6 +100,6 @@ class ShareRepoListView extends React.Component {
}
}
ShareRepoListView.propTypes = propTypes;
SharedRepoListView.propTypes = propTypes;
export default ShareRepoListView;
export default SharedRepoListView;

View File

@@ -9,7 +9,7 @@ import RepoInfo from '../../models/repoInfo';
import CommonToolbar from '../../components/toolbar/common-toolbar';
import CreateRepoDialog from '../../components/dialog/create-repo-dialog';
import CreateDepartmentRepoDialog from '../../components/dialog/create-department-repo-dialog';
import ShareRepoListView from '../../components/share-repo-list-view/share-repo-list-view';
import SharedRepoListView from '../../components/shared-repo-list-view/shared-repo-list-view';
const propTypes = {
onShowSidePanel: PropTypes.func.isRequired,
@@ -223,7 +223,7 @@ class GroupView extends React.Component {
{(!this.state.isLoading && errMessage) && errMessage}
{(!this.state.isLoading && this.state.repoList.length === 0) && emptyTip}
{(!this.state.isLoading && this.state.repoList.length > 0) &&
<ShareRepoListView
<SharedRepoListView
repoList={this.state.repoList}
currentGroup={this.state.currentGroup}
onItemUnshared={this.onItemUnshared}

View File

@@ -6,7 +6,7 @@ import Loading from '../../components/loading';
import Group from '../../models/group';
import RepoInfo from '../../models/repoInfo';
import GeneralToolbar from '../../components/toolbar/general-toolbar';
import ShareRepoListView from '../../components/share-repo-list-view/share-repo-list-view';
import SharedRepoListView from '../../components/shared-repo-list-view/shared-repo-list-view';
import '../../css/groups.css';
@@ -43,7 +43,7 @@ class RepoListViewPanel extends React.Component {
</h4>
{this.state.repoList.length === 0 ?
emptyTip :
<ShareRepoListView
<SharedRepoListView
isShowTableThread={false}
isShowRepoOwner={false}
currentGroup={this.props.group}