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

['Files' page] improved empty tips (#6088)

This commit is contained in:
llj
2024-05-16 14:51:07 +08:00
committed by GitHub
parent 64001350a3
commit 06de95840b
4 changed files with 25 additions and 30 deletions

View File

@@ -110,14 +110,15 @@ class PublicSharedView extends React.Component {
};
renderContent = () => {
const { errMessage } = this.state;
const emptyTip = (
<EmptyTip>
<h2>{gettext('No public libraries')}</h2>
<p>{gettext('No public libraries have been created yet. A public library is accessible by all users. You can create a public library by clicking the "Add Library" button in the menu bar.')}</p>
</EmptyTip>
);
const { inAllLibs = false } = this.props; // inAllLibs: in 'All Libs'('Files') page
const { errMessage } = this.state;
const emptyTip = inAllLibs ?
<p className="libraries-empty-tip">{gettext('No public libraries')}</p> : (
<EmptyTip>
<h2>{gettext('No public libraries')}</h2>
<p>{gettext('No public libraries have been created yet. A public library is accessible by all users. You can create a public library by clicking the "Add Library" button in the menu bar.')}</p>
</EmptyTip>
);
return (
<>
{this.state.isLoading && <Loading />}