1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 11:51:27 +00:00

[my libs] fixup & improvement

This commit is contained in:
llj
2019-06-11 11:07:24 +08:00
parent 3501058154
commit 2a44007b94

View File

@@ -152,9 +152,9 @@ class MyLibraries extends Component {
</div> </div>
<div className="cur-view-content"> <div className="cur-view-content">
{this.state.isLoading && <Loading />} {this.state.isLoading && <Loading />}
{!this.state.isLoading && this.state.errorMsg && <p className="error text-center">{this.state.errorMsg}</p>} {!this.state.isLoading && this.state.errorMsg && <p className="error text-center mt-8">{this.state.errorMsg}</p>}
{!this.state.isLoading && this.state.repoList.length === 0 && this.emptyMessage} {!this.state.isLoading && !this.state.errorMsg && this.state.repoList.length === 0 && this.emptyMessage}
{!this.state.isLoading && this.state.repoList.length > 0 && {!this.state.isLoading && !this.state.errorMsg && this.state.repoList.length > 0 &&
<MylibRepoListView <MylibRepoListView
sortBy={this.state.sortBy} sortBy={this.state.sortBy}
sortOrder={this.state.sortOrder} sortOrder={this.state.sortOrder}