mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-07 20:16:46 +03:00
type fix
This commit is contained in:
@@ -228,17 +228,17 @@ export function OrganizationList({
|
|||||||
{(() => {
|
{(() => {
|
||||||
const parts = [];
|
const parts = [];
|
||||||
if (org.publicRepositoryCount && org.publicRepositoryCount > 0) {
|
if (org.publicRepositoryCount && org.publicRepositoryCount > 0) {
|
||||||
parts.push(`${org.publicRepositoryCount}pub`);
|
parts.push(`${org.publicRepositoryCount} pub`);
|
||||||
}
|
}
|
||||||
if (org.privateRepositoryCount && org.privateRepositoryCount > 0) {
|
if (org.privateRepositoryCount && org.privateRepositoryCount > 0) {
|
||||||
parts.push(`${org.privateRepositoryCount}priv`);
|
parts.push(`${org.privateRepositoryCount} priv`);
|
||||||
}
|
}
|
||||||
if (org.forkRepositoryCount && org.forkRepositoryCount > 0) {
|
if (org.forkRepositoryCount && org.forkRepositoryCount > 0) {
|
||||||
parts.push(`${org.forkRepositoryCount}fork`);
|
parts.push(`${org.forkRepositoryCount} fork`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return parts.length > 0 ? (
|
return parts.length > 0 ? (
|
||||||
<span className="ml-1">({parts.join('/')})</span>
|
<span className="ml-1">({parts.join(' | ')})</span>
|
||||||
) : null;
|
) : null;
|
||||||
})()}
|
})()}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user