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:
@@ -1,7 +1,7 @@
|
|||||||
import React, {Fragment} from 'react';
|
import React, {Fragment} from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { gettext } from '../../utils/constants';
|
import { gettext } from '../../utils/constants';
|
||||||
import ShareRepoListItem from './share-repo-list-item';
|
import SharedRepoListItem from './shared-repo-list-item';
|
||||||
|
|
||||||
const propTypes = {
|
const propTypes = {
|
||||||
currentGroup: PropTypes.object,
|
currentGroup: PropTypes.object,
|
||||||
@@ -10,7 +10,7 @@ const propTypes = {
|
|||||||
onItemUnshared: PropTypes.func.isRequired,
|
onItemUnshared: PropTypes.func.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
class ShareRepoListView extends React.Component {
|
class SharedRepoListView extends React.Component {
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
@@ -30,7 +30,7 @@ class ShareRepoListView extends React.Component {
|
|||||||
<Fragment>
|
<Fragment>
|
||||||
{this.props.repoList.map(repo => {
|
{this.props.repoList.map(repo => {
|
||||||
return (
|
return (
|
||||||
<ShareRepoListItem
|
<SharedRepoListItem
|
||||||
key={repo.repo_id}
|
key={repo.repo_id}
|
||||||
repo={repo}
|
repo={repo}
|
||||||
currentGroup={this.props.currentGroup}
|
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;
|
@@ -9,7 +9,7 @@ import RepoInfo from '../../models/repoInfo';
|
|||||||
import CommonToolbar from '../../components/toolbar/common-toolbar';
|
import CommonToolbar from '../../components/toolbar/common-toolbar';
|
||||||
import CreateRepoDialog from '../../components/dialog/create-repo-dialog';
|
import CreateRepoDialog from '../../components/dialog/create-repo-dialog';
|
||||||
import CreateDepartmentRepoDialog from '../../components/dialog/create-department-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 = {
|
const propTypes = {
|
||||||
onShowSidePanel: PropTypes.func.isRequired,
|
onShowSidePanel: PropTypes.func.isRequired,
|
||||||
@@ -223,7 +223,7 @@ class GroupView extends React.Component {
|
|||||||
{(!this.state.isLoading && errMessage) && errMessage}
|
{(!this.state.isLoading && errMessage) && errMessage}
|
||||||
{(!this.state.isLoading && this.state.repoList.length === 0) && emptyTip}
|
{(!this.state.isLoading && this.state.repoList.length === 0) && emptyTip}
|
||||||
{(!this.state.isLoading && this.state.repoList.length > 0) &&
|
{(!this.state.isLoading && this.state.repoList.length > 0) &&
|
||||||
<ShareRepoListView
|
<SharedRepoListView
|
||||||
repoList={this.state.repoList}
|
repoList={this.state.repoList}
|
||||||
currentGroup={this.state.currentGroup}
|
currentGroup={this.state.currentGroup}
|
||||||
onItemUnshared={this.onItemUnshared}
|
onItemUnshared={this.onItemUnshared}
|
||||||
|
@@ -6,7 +6,7 @@ import Loading from '../../components/loading';
|
|||||||
import Group from '../../models/group';
|
import Group from '../../models/group';
|
||||||
import RepoInfo from '../../models/repoInfo';
|
import RepoInfo from '../../models/repoInfo';
|
||||||
import GeneralToolbar from '../../components/toolbar/general-toolbar';
|
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';
|
import '../../css/groups.css';
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ class RepoListViewPanel extends React.Component {
|
|||||||
</h4>
|
</h4>
|
||||||
{this.state.repoList.length === 0 ?
|
{this.state.repoList.length === 0 ?
|
||||||
emptyTip :
|
emptyTip :
|
||||||
<ShareRepoListView
|
<SharedRepoListView
|
||||||
isShowTableThread={false}
|
isShowTableThread={false}
|
||||||
isShowRepoOwner={false}
|
isShowRepoOwner={false}
|
||||||
currentGroup={this.props.group}
|
currentGroup={this.props.group}
|
||||||
|
Reference in New Issue
Block a user